:root{
  --bg1:#0b1220;
  --bg2:#0f1b34;
  --card:#0f172a;
  --card2:#111c33;
  --text:#e8eefc;
  --muted:#a9b4d0;
  --line:rgba(255,255,255,.10);
  --accent:#ffb020;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;

  /* Renfe purple aproximado */
  --renfePurple:#6f2dbd;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(255,176,32,.18), transparent 55%),
    radial-gradient(900px 450px at 80% 10%, rgba(34,197,94,.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 70%);
}

a{ color:#cfe1ff; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Layout */
.container{
  max-width: 980px;
  margin: 28px auto;
  padding: 0 16px 26px;
}

.shell{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Header */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:44px;height:44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,176,32,.85), rgba(255,176,32,.15) 55%, transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(34,197,94,.65), rgba(34,197,94,.12) 55%, transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.logo:before{
  content:"";
  width:22px;height:22px;
  border-radius: 8px;
  border:2px solid rgba(255,255,255,.55);
  transform: rotate(12deg);
  opacity:.9;
}

.brand h1{
  margin:0;
  font-size: 18px;
  letter-spacing:.2px;
}
.brand .tagline{
  margin:2px 0 0;
  color:var(--muted);
  font-size: 13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.55);
  border-radius: 999px;
  color:var(--muted);
  font-size: 13px;
}

/* Buttons */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  cursor:pointer;
  border:1px solid var(--line);
  background: rgba(15,23,42,.7);
  color:var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(255,176,32,.45);
  background: rgba(255,176,32,.14);
}
.btn-primary:hover{ background: rgba(255,176,32,.18); }

.btn-danger{
  border-color: rgba(239,68,68,.45);
  background: rgba(239,68,68,.14);
}
.btn-danger:hover{ background: rgba(239,68,68,.18); }

/* Content */
.content{ padding: 18px; }

.h2{
  margin:0 0 6px;
  font-size: 22px;
}
.muted{ color:var(--muted); }

.card{
  margin-top: 14px;
  padding: 14px;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(15,23,42,.55);
}

/* Inputs */
select, input{
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(15,23,42,.65);
  color: var(--text);
  outline:none;
}

/* ===== LOGIN EXTRAS ===== */

.login-shell{
  position: relative;
}

/* Frase superior centrada */
.login-slogan{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--renfePurple);
  font-weight: 900;
  letter-spacing: .6px;
  font-size: 16px;
  text-transform: uppercase;
  opacity: .95;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111,45,189,.35);
  background: rgba(111,45,189,.10);
  pointer-events: none;
}

.login-content{
  padding-top: 24px;
}

/* Logo Renfe esquina inferior derecha */
.renfe-corner-logo{
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 110px;
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
  pointer-events: none;
}

/* Responsive */
@media (max-width: 520px){
  .brand h1{ font-size:16px; }
  .topbar{ padding:14px; }
  .content{ padding:14px; }

  .login-slogan{ font-size: 14px; top: 8px; }
  .renfe-corner-logo{ width: 92px; right: 12px; bottom: 12px; }
}
.logo {
  display: none !important;
}

