/* =============================================
   LOGIN — Termas de Ourense
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  background: #0f1a1c;
  color: #f5f0e8;
  overflow: hidden;
}

/* ── Fondo animado ── */
.login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(45,74,82,0.7) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(25,45,50,0.8) 0%, transparent 55%),
    linear-gradient(160deg, #0a1214 0%, #111815 40%, #0f1a1c 100%);
  z-index: 0;
}
.login-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 6px
  );
}

/* ── Vapor ── */
.steam {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(to top, rgba(255,255,255,0.14), transparent);
  filter: blur(8px);
  animation: steamRise var(--dur, 6s) ease-in infinite;
  animation-delay: var(--del, 0s);
}
.steam--1 { left: 10%; width: 50px; height: 260px; --dur: 7s;   --del: 0s;   }
.steam--2 { left: 35%; width: 35px; height: 200px; --dur: 5.5s; --del: 1.8s; }
.steam--3 { left: 60%; width: 55px; height: 300px; --dur: 8s;   --del: 0.6s; }
.steam--4 { left: 82%; width: 30px; height: 180px; --dur: 6s;   --del: 3s;   }

@keyframes steamRise {
  0%   { transform: translateY(0) scaleX(1);   opacity: 0; }
  10%  {                                        opacity: 0.55; }
  60%  { transform: translateY(-55%) scaleX(1.6); opacity: 0.25; }
  100% { transform: translateY(-115%) scaleX(2.8); opacity: 0; }
}

/* ── Layout ── */
.login-wrap {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Enlace volver ── */
.login-back {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.38);
  text-decoration: none;
  transition: color 0.3s;
}
.login-back svg { width: 14px; height: 14px; }
.login-back:hover { color: rgba(245,240,232,0.75); }

/* ── Card ── */
.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(28,26,23,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 52px 44px 48px;
  animation: cardIn 0.7s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6fa3ad;
  margin-bottom: 16px;
}
.login-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
  color: #f5f0e8;
  margin-bottom: 24px;
}
.login-title em {
  font-style: italic;
  display: block;
  color: #c9a96e;
}
.login-divider {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 32px;
}

/* ── Error ── */
.login-error {
  display: none;
  background: rgba(180,50,30,0.18);
  border-left: 3px solid #c0452a;
  padding: 12px 14px;
  font-size: 0.83rem;
  font-weight: 300;
  color: #f0b0a0;
  margin-bottom: 24px;
  line-height: 1.5;
}
.login-error--visible { display: block; }

/* ── Form ── */
.login-form { display: flex; flex-direction: column; gap: 20px; }

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-field label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
}
.login-field input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f5f0e8;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.login-field input:focus {
  border-color: rgba(111,163,173,0.6);
  background: rgba(255,255,255,0.08);
}
.login-field input::placeholder { color: rgba(245,240,232,0.2); }

/* ── Submit ── */
.login-btn {
  margin-top: 8px;
  padding: 14px;
  background: none;
  border: 1px solid rgba(201,169,110,0.5);
  color: #c9a96e;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.login-btn:hover {
  background: #c9a96e;
  color: #1c1a17;
}

/* ── Footer note ── */
.login-footer-note {
  position: absolute;
  bottom: 24px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.18);
}

@media (max-width: 480px) {
  .login-card { padding: 40px 28px 36px; }
}
