:root {
  /* Paleta de marca (la misma que la web y las apps): naranja liso sobre fondo casi negro. */
  --bg: #080a0c;
  --panel: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f6fa;
  --muted: #8a909b;
  --orange: #ff8d22;
  --orange-soft: rgba(255, 141, 34, 0.18);
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(55% 42% at 50% 55%, rgba(255, 141, 34, 0.10), transparent 70%),
    var(--bg);
}

/* --- Acceso (arriba) --- */
.topbar {
  padding: 22px 28px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Tarjeta de cristal: borde con un reflejo naranja que se apaga, fondo translúcido y sombra profunda. */
.login {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #1b1e25, #121419) padding-box, /* opaco: si no, el reflejo del borde tiñe el fondo */
    linear-gradient(135deg, rgba(255, 141, 34, 0.55), rgba(255, 255, 255, 0.10) 38%, rgba(255, 255, 255, 0.04)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.field { display: grid; gap: 7px; }

.field span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}

.field input {
  width: 190px;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(8, 10, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 6px rgba(0, 0, 0, 0.35) inset;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:hover { border-color: rgba(255, 255, 255, 0.20); }

.field input:focus {
  border-color: var(--orange);
  background: rgba(8, 10, 12, 0.85);
  box-shadow: 0 0 0 4px var(--orange-soft), 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}

/* El autorrelleno del navegador no debe pintar el campo de blanco/amarillo. */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px #0c0e12 inset;
  caret-color: var(--text);
}

.login button {
  height: 44px;
  padding: 0 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a0f04;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffa64d, var(--orange) 55%, #f47a0a);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 8px 22px rgba(255, 141, 34, 0.32),
    0 2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 28px rgba(255, 141, 34, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.login button:active { transform: translateY(0); filter: brightness(0.96); }
.login button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.login button:disabled { opacity: 0.6; cursor: progress; transform: none; }

.login-msg {
  min-height: 20px;
  margin: 0;
  padding-right: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.login-msg.is-error { color: var(--danger); }
.login-msg a { color: var(--orange); text-decoration: none; }
.login-msg a:hover { text-decoration: underline; }

/* --- Logo y «Próximamente» --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px 48px;
  text-align: center;
}

.logo {
  width: min(760px, 88vw);
  height: auto;
}

.soon {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em; /* compensa el espaciado de la última letra para que quede centrado */
  color: var(--orange);
}

.footer {
  padding: 16px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* --- Móvil: el acceso ocupa todo el ancho y se apila --- */
@media (max-width: 640px) {
  .topbar { padding: 16px 16px 0; align-items: stretch; }
  .login { flex-direction: column; align-items: stretch; padding: 16px; }
  .field input { width: 100%; }
  .login button { width: 100%; }
  .login-msg { text-align: center; }
}


/* El correo necesita más sitio que la contraseña. */
@media (min-width: 641px) { .field input[type="email"] { width: 250px; } }
