/* Páginas públicas de cuenta (forgot_password.php, reset_password.php).
   Mismo lenguaje visual que login.php, que lleva su CSS inline. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 50%, #1e293b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  animation: slideIn .3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-container { text-align: center; margin-bottom: 28px; }

.logo-circle {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 34px;
}

.logo-title    { font-size: 22px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.logo-subtitle { font-size: 14px; color: #64748b; line-height: 1.5; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }

.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .7; }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.toggle-password {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; opacity: .7; padding: 4px;
}
.toggle-password:hover { opacity: 1; }

.hint { font-size: 12px; color: #64748b; margin-top: 6px; line-height: 1.5; }

.submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .05s;
}
.submit-btn:hover:not(:disabled) { opacity: .92; }
.submit-btn:active:not(:disabled) { transform: translateY(1px); }
.submit-btn:disabled { opacity: .55; cursor: not-allowed; }

.alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.alert.show { display: flex; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.footer { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.footer a { color: #3b82f6; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer-text { font-size: 12px; color: #94a3b8; margin-top: 8px; }
