/* =========================
   VARIABLES
   ========================= */
:root{
  --bg1: #cfd9ff;
  --bg2: #eef1ff;
  --bg3: #f5f7ff;

  --text: rgba(15,15,15,0.92);
  --muted: rgba(25,25,25,0.60);
}

/* =========================
   RESET
   ========================= */
*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(
    circle at 30% 40%,
    var(--bg1) 0%,
    var(--bg2) 60%,
    var(--bg3) 100%
  );
}

/* =========================
   LAYOUT CENTRADO
   ========================= */
.auth-wrap{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}

/* =========================
   BACKDROP (tipo modal)
   ========================= */
.auth-wrap::before{
  content:"";
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index: 0;
}

/* =========================
   CARD GLASS
   ========================= */
.auth-card{
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 18px 60px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Brillo interno */
.auth-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.35),
    transparent 55%
  );
  pointer-events:none;
}

/* =========================
   HEADER / LOGO
   ========================= */
.auth-header{ margin-bottom: 10px; }

.auth-header img{
  width: 90px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   TEXTOS
   ========================= */
.auth-title{
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(15,15,15,0.92);
}

.auth-subtitle{
  margin: 0 0 16px 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(25,25,25,0.75);
}

/* =========================
   FORM
   ========================= */
.auth-form{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================
   INPUT GLASS
   ========================= */
.auth-form input{
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-size: 14px;
  font-weight: 500;
  color: rgba(15,15,15,0.85);
  outline: none;

  transition: border .15s ease, box-shadow .15s ease;
}

.auth-form input::placeholder{
  color: rgba(0,0,0,0.35);
}

.auth-form input:focus{
  border-color: rgba(34,197,94,0.45);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

/* =========================
   BOTÓN GLASS
   ========================= */
.auth-btn{
  width: 100%;
  height: 44px;
  border-radius: 14px;

  background: rgba(34,197,94,0.22);
  border: 1px solid rgba(34,197,94,0.30);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-weight: 600;
  font-size: 14px;
  color: rgba(10,60,25,0.95);

  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.auth-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.auth-btn:active{
  transform: translateY(0);
}

/* =========================
   ALERTAS
   ========================= */
.auth-alert{
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: center;
}

.auth-alert--ok{
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: rgba(10,60,25,0.95);
}

.auth-alert--err{
  background: rgba(220,38,38,0.10);
  border: 1px solid rgba(220,38,38,0.25);
  color: rgba(90,20,20,0.95);
}

/* =========================
   LINK INFERIOR
   ========================= */
.auth-link{
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(46,125,50,0.95);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover{
  text-decoration: underline;
}

.auth-actions{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Botón secundario (ghost) reutilizando tu look */
.auth-btn--ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(20,20,20,0.78);
}