:root{
  /* Base */
  --bg1:#0a0a0a;
  --bg2:#121212;

  /* Oro sobrio */
  --gold:#c9a23a;
  --gold-soft:rgba(201,162,58,.35);

  /* Texto */
  --text:#f2f2f2;
  --muted:rgba(255,255,255,.65);

  /* UI */
  --field-bg:rgba(255,255,255,.04);
  --field-border:rgba(255,255,255,.14);

  /* Efectos */
  --shadow:rgba(0,0,0,.65);
  --radius:18px;
}

*{ box-sizing:border-box }

body{
  margin:0;
  min-height:100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);

  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,58,.12), transparent 45%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

/* ===== CONTENEDOR ===== */

.auth-wrap{
  max-width:420px;
  margin:0 auto;
  padding:28px 18px 44px;
}

/* ===== LOGO ===== */

.brand{
  display:flex;
  justify-content:center;
  margin:14px 0 12px;
}

.brand-logo{
  width:240px;
  max-width:100%;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.6));
}

/* ===== TARJETA ===== */

.card{
  margin-top:10px;
  padding:22px 20px 20px;

  background: rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;

  box-shadow:0 20px 50px var(--shadow);
  backdrop-filter: blur(12px);
}

/* ===== TEXTOS ===== */

h1{
  margin:10px 0 6px;
  text-align:center;
  font-size:20px;
  letter-spacing:.14em;
  font-weight:800;
}

.sub{
  margin:0 0 18px;
  text-align:center;
  font-size:14px;
  color:var(--muted);
  line-height:1.4;
}

/* ===== FORM ===== */

.form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ===== CAMPOS ===== */

.field{
  display:flex;
  align-items:center;
  gap:10px;

  padding:13px 14px;
  border-radius:16px;

  background:var(--field-bg);
  border:1px solid var(--field-border);

  transition:border .2s ease, background .2s ease;
}

.field:focus-within{
  border-color:var(--gold-soft);
  background:rgba(255,255,255,.06);
}

.field .icon{
  width:26px;
  text-align:center;
  opacity:.8;
}

.field input{
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:15px;
}

.field input::placeholder{
  color:rgba(255,255,255,.45);
}

/* ===== OJO CONTRASEÑA ===== */

.eye{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.65);
  font-size:16px;
  cursor:pointer;
  padding:10px;          /* ✅ más área de click */
  margin:-10px;          /* ✅ compensa para no agrandar el field */
  line-height:1;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  pointer-events:auto;   /* ✅ por si algo lo bloquea */
}


/* ===== BOTÓN PRINCIPAL ===== */

.btn-primary{
  margin-top:6px;
  padding:14px 18px;

  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;

  font-size:14px;
  font-weight:700;
  letter-spacing:.18em;

  color:#fff;
  background: rgba(255,255,255,.06);

  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}

.btn-primary:hover{
  background: rgba(255,255,255,.10);
}


/* ===== TEXTOS INFERIORES ===== */

.legal,
.bottom{
  margin:8px 0 0;
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,.65);
}

.link-strong{
  color:var(--gold);
  font-weight:700;
  text-decoration:none;
}

.link-strong:hover{
  text-decoration:underline;
}

/* ===== MENSAJES ===== */

.msg{
  min-height:18px;
  margin-top:6px;
  text-align:center;
  font-size:13px;
  color:#f1c86a;
}

.link-forgot{
  display:block;
  text-align:center;
  margin: 4px 0 2px;

  font-size:14px;
  font-weight:600;

  color: var(--gold);
  text-decoration:none;
  opacity:.85;

  transition: opacity .2s ease, text-decoration .2s ease;
}

.link-forgot:hover{
  opacity:1;
  text-decoration:underline;
}

/* ===============================
   MODAL MENSAJES
================================ */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active{
  display: flex;
}

.modal-box{
  background: #0b0b0b;
  border: 1px solid rgba(212,175,55,.5);
  border-radius: 18px;
  padding: 22px 20px 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: modalIn .25s ease;
}

.modal-box h3{
  margin: 0 0 12px;
  color: #d4af37;
  letter-spacing: 1px;
}

.modal-box p{
  font-size: 14px;
  line-height: 1.4;
  color: #eaeaea;
  margin-bottom: 20px;
}

.modal-btn{
  width: 100%;
  padding: 12px 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg,#d4af37,#ffcf40);
  color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
}

@keyframes modalIn{
  from{ transform: scale(.9); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}
