/* Páginas de acceso — fondo blanco, estilo limpio */

.auth-page {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.auth-page * { box-sizing: border-box; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 36px 32px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-subtitle {
  margin-top: 4px;
  font-size: 0.875rem;
  color: #888;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input::placeholder {
  color: #aaa;
}

.auth-form input:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.auth-form .captcha-box {
  margin: 4px 0 16px;
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.captcha-note {
  color: #666;
  font-size: 0.8rem;
  text-align: center;
  margin: 8px 0 0;
}

.captcha-note.captcha-ok { color: #15803d; }
.captcha-note.captcha-err { color: #b91c1c; }

#captchaWidget {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

.btn-login {
  display: inline-block;
  padding: 10px 28px;
  margin-top: 4px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-login:hover {
  background: #333;
}

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

.auth-lost {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
}

.auth-lost:hover {
  color: #111;
  text-decoration: underline;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.auth-footer select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 0.8rem;
  cursor: pointer;
}

.auth-footer .btn-cookies {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 0.8rem;
  cursor: pointer;
}

.auth-footer .btn-cookies:hover {
  background: #f5f5f5;
}

.auth-msg {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.875rem;
}

.auth-msg.err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-msg.ok {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.auth-msg.hidden { display: none; }

.auth-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
}

.auth-back:hover { color: #111; text-decoration: underline; }

/* Modal cookies */
.cookies-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.cookies-modal.open {
  display: flex;
}

.cookies-modal-box {
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cookies-modal-box h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.cookies-modal-box p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: #555;
}

.cookies-modal-box button {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}

@media (max-width: 420px) {
  .auth-card {
    padding: 28px 22px 22px;
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
