/* signup_teacher.css */

.auth-page {
  min-height: 100vh;
  margin: 0;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background-color: #fff;
  border: 2px solid #7a1f2b;
  border-radius: 14px;
  padding: 24px 32px 32px;
  box-sizing: border-box;
  position: relative;
  margin: 24px;
}

/* BACK LINK */

.auth-card .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #7a1f2b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* TITLE */

.auth-card h1 {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #7a1f2b;
  margin: 8px 0 28px 0;
  letter-spacing: 0.02em;
}

/* FIELDS */

.field {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.field label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #7a1f2b;
  flex: 0 0 150px;
  text-align: left;
}

.field-input {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.field-input input {
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #333;
  background-color: #fff;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid #7a1f2b;
  border-radius: 6px;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.15s ease;
}

.field-input input:focus {
  box-shadow: 0 0 0 2px rgba(122, 31, 43, 0.2);
}

.field-input:not(:has(.toggle-password)) input {
  padding-right: 12px;
}

/* PASSWORD TOGGLE */

.toggle-password {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 0;
  color: #7a1f2b;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

/* SUBMIT BUTTON */

.auth-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.auth-actions .btn {
  padding: 10px 32px;
}

/* FOOTER */

.auth-footer {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #7a1f2b;
  margin: 20px 0 0 0;
}

.auth-footer a {
  color: #7a1f2b;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
}

/* RESPONSIVE */

@media (max-width: 520px) {
  .field {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .field label {
    flex: none;
  }

  .field-input {
    width: 100%;
  }
}

/* RESPONSIVE TEACHER SIGN UP */
.auth-card {
  min-width: 0;
}

.auth-card h1 {
  overflow-wrap: anywhere;
}

.field,
.field-input {
  min-width: 0;
}

.field-input input {
  min-width: 0;
}

.form-error {
  overflow-wrap: anywhere;
}

/* TABLET */
@media (max-width: 768px) {
  .auth-page {
    padding: 1rem 0;
    box-sizing: border-box;
  }

  .auth-card {
    width: calc(100% - 2rem);
    max-width: 480px;
    margin: 1rem;
  }
}

/* MOBILE */
@media (max-width: 520px) {
  .auth-card {
    padding: 20px 22px 26px;
  }

  .auth-card h1 {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }

  .field {
    width: 100%;
  }

  .field label {
    flex: none;
  }

  .field-input {
    width: 100%;
  }

  .auth-actions .btn {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* VERY NARROW SCREENS */
@media (max-width: 360px) {
  .auth-card {
    width: calc(100% - 1.25rem);
    margin: 0.625rem;
    padding: 18px 14px 22px;
  }

  .auth-card h1 {
    font-size: 1.1rem;
  }

  .auth-actions .btn {
    width: 100%;
    padding: 10px 16px;
  }

  .auth-footer {
    line-height: 1.5;
  }
}