/**
 * Modal de login (sitio público) – alineado con react-app LoginPage / referencia UI
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Urbanist:wght@600;700&display=swap');

/* Oscurece el backdrop mientras el modal de login está abierto */
body.modal-open .modal-backdrop.show {
  background-color: rgb(15 23 42);
  opacity: 0.72 !important;
}

.awtu-login-modal-dialog {
  max-width: 460px;
  width: calc(100% - 1.5rem);
}

.awtu-login-modal-content.login-card {
  border-radius: 16px;
  overflow: hidden;
}

.awtu-login-modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.awtu-register-back-top {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.awtu-register-back-top:hover {
  color: #1e293b !important;
}

.login-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.05);
}

.login-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .login-title {
    font-size: 2rem;
  }
}

/* Pestañas Email / Teléfono (borde inferior verde en la activa) */
.awtu-login-tabs {
  display: flex;
  width: 100%;
  border-bottom: 2px solid #e2e8f0;
  gap: 0;
}

.awtu-login-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.5rem 0.85rem;
  margin-bottom: -2px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.awtu-login-tab:hover {
  color: #475569;
}

.awtu-login-tab .awtu-login-tab-icon {
  font-size: 1.1rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.awtu-login-tab--active {
  color: #10b981;
  font-weight: 600;
  border-bottom-color: #10b981;
}

.awtu-login-tab--active .awtu-login-tab-icon {
  color: #10b981;
}

.login-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.login-input {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1e293b;
}

.login-input:focus {
  outline: none;
  border: 2px solid #10b981;
  box-shadow: none;
}

/* Placeholder suave (sobrescribe .form-control de Bootstrap en el modal) */
#modalLoginSocial .login-input::placeholder,
.awtu-modal-login .form-control.login-input::placeholder {
  color: #c5ccd6;
  opacity: 1;
}

#modalLoginSocial .login-input::-webkit-input-placeholder,
.awtu-modal-login .form-control.login-input::-webkit-input-placeholder {
  color: #c5ccd6;
}

#modalLoginSocial .login-input::-moz-placeholder,
.awtu-modal-login .form-control.login-input::-moz-placeholder {
  color: #c5ccd6;
  opacity: 1;
}

.login-btn-primary {
  background-color: #10b981;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.login-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-divider-line {
  background-color: #e2e8f0;
}

.login-divider-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
}

.login-btn-outline {
  background-color: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  min-height: 48px;
}

.login-demo-section {
  border-top: 1px solid #e2e8f0;
}

.login-demo-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.awtu-btn-register-cta {
  min-height: 44px;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #10b981;
  border: 1px solid #10b981;
  background: transparent;
  transition: background-color 0.15s ease;
}

.awtu-btn-register-cta:hover {
  background-color: #ecfdf5;
  color: #059669;
}

#awtu-codigo-input {
  letter-spacing: 0.35em;
}

/* —— Registro (Register.tsx) —— */
.awtu-register-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.register-input {
  padding: 12px 12px 12px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1e293b;
  min-height: 48px;
}

.register-input:focus {
  outline: none;
  border: 2px solid #10b981;
  box-shadow: none;
}

#modalRegisterAwtu .register-input::placeholder,
.awtu-modal-register .form-control.register-input::placeholder {
  color: #c5ccd6;
  opacity: 1;
}

#modalRegisterAwtu .register-input::-webkit-input-placeholder,
.awtu-modal-register .form-control.register-input::-webkit-input-placeholder {
  color: #c5ccd6;
}

#modalRegisterAwtu .register-input::-moz-placeholder,
.awtu-modal-register .form-control.register-input::-moz-placeholder {
  color: #c5ccd6;
  opacity: 1;
}

.register-input.is-invalid {
  border-color: #dc2626 !important;
}

.register-input-with-icon {
  padding-left: 2.75rem;
}

.awtu-register-input-icon {
  z-index: 1;
  pointer-events: none;
}

.register-btn-primary {
  background-color: #10b981;
  color: #ffffff;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: opacity 0.15s ease;
}

.register-btn-primary:hover:not(:disabled) {
  opacity: 0.92;
}

.register-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.register-divider-line {
  background-color: #e2e8f0;
}

.register-divider-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
}

.register-btn-outline {
  background-color: transparent;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  min-height: 48px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.register-btn-outline:hover:not(:disabled) {
  background-color: #f8fafc;
}

.awtu-register-guardian {
  font-family: 'Inter', sans-serif;
  line-height: 1.45;
}

.awtu-register-legal a {
  text-decoration: none;
}

.awtu-register-legal a:hover {
  text-decoration: underline;
}

#awtu-register-codigo {
  letter-spacing: 0.35em;
}
