* {
  box-sizing: border-box;
}

.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
}

img.avatar {
  width: 5%;
  border-radius: 50%;
}

.captcha {
  text-align: center;
  background-color: #ccc;
  font-size: 20px;
  letter-spacing: 10px;
  font-weight: 500;
  font-style: italic;
  text-decoration-line: line-through;
  font-family: "Times New Roman", Times, serif;
}

#auth_signup_with_captcha {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px 16px;
  margin: 16px auto;
  max-width: 320px;
}

.input-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
  justify-content: center;
}

.input-field.captcha {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 4px;
  background: #f5f5f5;
  border: 2px solid #d1d1d1;
  color: #222;
  text-align: center;
  width: 140px;
  margin-right: 8px;
  border-radius: 4px;
}

.input-field {
  font-size: 1rem;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  width: 140px;
  margin-right: 8px;
  outline: none;
}

.input-field:focus {
  border: 2px solid #8cc0f3;
}

.icon,
#refresh_icon {
  padding: 10px;
  background: #3498db;
  color: white;
  min-width: 40px;
  min-height: 33px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  border: none;
  transition: background 0.2s;
}

#refresh_icon:hover {
  background: #217dbb;
}

.btn {
  background-color: #4976d3;
  color: white;
  border: none;
  margin-top: 3px;
  margin-bottom: 3px;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

#success,
#error {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  text-align: center;
}

/* Style for Reset Password link to look like a button */
a[href*="/web/reset_password"] {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  background-color: rgb(0, 89, 255); /* blue */
  border-color: rgb(0, 89, 255); /* blue border */
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  text-decoration: none;
}

a[href*="/web/reset_password"]:hover {
  color: #fff;
  background-color: #5a6268;
  border-color: #545b62;
}
