/* Fallback estático si theme.css remoto no carga (lab / primera visita) */
:root {
  --nc-blue: #0082c9;
  --nc-blue-dark: #00629a;
  --bg: #1a1d2e;
  --surface: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #e8eaf0;
  --text-muted: #8b90a8;
  --link: #7dd3fc;
  --link-hover: #bae6fd;
  --radius: 14px;
}

body.albatros-mail-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(26,29,46,0.45), rgba(22,26,42,0.4)),
    url('/skins/albatros_integrado/images/albatros/fondo-webmail.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
}

.albatros-mail-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.albatros-mail-card h1 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.35rem; }
.albatros-mail-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 1rem; }
.albatros-mail-card label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.albatros-mail-card input {
  width: 100%; box-sizing: border-box; padding: 0.6rem 0.75rem; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text);
  font: inherit; margin-bottom: 1rem;
}
.albatros-mail-card button[type="submit"],
.albatros-mail-card .albatros-mail-btn {
  width: 100%; padding: 0.65rem; border: none; border-radius: 8px;
  background: var(--nc-blue); color: #fff; font-weight: 600; font: inherit; cursor: pointer;
}
.albatros-mail-card button[type="submit"]:hover,
.albatros-mail-card .albatros-mail-btn:hover { background: var(--nc-blue-dark); }
.albatros-mail-card button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

/* Contraste alto: el brand.css del skin no debe ocultar estos enlaces */
.albatros-mail-card a.albatros-mail-back,
a.albatros-mail-back {
  color: var(--link) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.albatros-mail-card a.albatros-mail-back:hover,
a.albatros-mail-back:hover {
  color: var(--link-hover) !important;
}

.albatros-mail-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  margin: 0 auto 0.75rem;
}
.albatros-mail-logo img {
  max-height: 110px;
  max-width: 160px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25));
}
.albatros-mail-footer { margin-top: 1.5rem; text-align: center; font-size: 0.72rem; color: var(--text-muted); line-height: 1.45; }

/* Campos contraseña + ojo */
.albatros-pwd-field {
  position: relative;
  margin-bottom: 1rem;
}
.albatros-pwd-field input {
  margin-bottom: 0;
  padding-right: 2.75rem;
}
.albatros-pwd-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.albatros-pwd-toggle:hover {
  background: rgba(125, 211, 252, 0.12);
  color: var(--link-hover);
}
.albatros-pwd-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
