/* =====================================================
   Entrenamientos Aracena — Auth UI 2026
   Login / Register / Forgot / Reset
   Neon Premium Dark — MOBILE FIRST PRO
===================================================== */

/* =====================================================
   VARIABLES
===================================================== */
:root{
  --bg:#0b0b0b;
  --card-glass:rgba(16,16,16,.92);
  --card-solid:#0f0f0f;

  --text:#f5f5f5;
  --muted:rgba(255,255,255,.7);

  --accent:#ff8c00;
  --accent-strong:#ff6a00;

  --radius:18px;
  --radius-sm:12px;

  --shadow:0 18px 48px rgba(0,0,0,.65);
  --glow:0 0 0 3px rgba(255,140,0,.18);

  --input-bg:rgba(255,255,255,.08);
  --input-bd:rgba(255,255,255,.14);

  --error:#ff4d4d;
  --warning:#ffb020;
  --success:#2ecc71;

  --ease:cubic-bezier(.2,.9,.2,1);
}

/* =====================================================
   BODY
===================================================== */
.auth-body{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(1000px 600px at 40% 20%, rgba(255,140,0,.18), transparent 60%),
    radial-gradient(800px 500px at 20% 85%, rgba(255,140,0,.12), transparent 55%),
    var(--bg);
  font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--text);
  overflow-x:hidden;
}

/* =====================================================
   WRAPPER (CENTRADO REAL)
===================================================== */
.auth-wrapper{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
  box-sizing:border-box;
}

/* =====================================================
   BRAND
===================================================== */
.auth-brand{
  text-align:center;
  margin-bottom:18px;
  animation:fadeSlide .5s var(--ease) both;
}

.auth-logo{
  width:84px;
  margin-bottom:10px;
  filter:drop-shadow(0 0 14px rgba(255,140,0,.35));
}

.auth-brand h1{
  margin:0;
  font-size:26px;
  font-weight:900;
  color:var(--accent);
}

.auth-brand p{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}

/* =====================================================
   CARD
===================================================== */
.auth-card{
  width:100%;
  max-width:420px;
  padding:28px 26px;
  background:linear-gradient(180deg,var(--card-glass),var(--card-solid));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  position:relative;
  animation:fadeSlide .6s var(--ease) both;
}

.auth-card h2{
  margin:0 0 18px;
  text-align:center;
  font-size:22px;
  font-weight:800;
}

/* =====================================================
   FORM
===================================================== */
.auth-form{
  display:grid;
  gap:14px;
}

.auth-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.auth-form label{
  font-size:12px;
  color:rgba(255,255,255,.85);
}

/* INPUTS */
.auth-form input{
  height:52px;
  padding:0 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--input-bd);
  background:var(--input-bg);
  color:var(--text);
  font-size:15px;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.auth-form input::placeholder{
  color:rgba(255,255,255,.45);
}

.auth-form input:focus{
  outline:none;
  border-color:rgba(255,140,0,.7);
  box-shadow:var(--glow);
}

/* =====================================================
   PASSWORD
===================================================== */
.password-wrap{
  position:relative;
}

.toggle-password{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(0,0,0,.3);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}

/* Password strength */
.password-strength{
  margin-top:6px;
  height:4px;
  background:rgba(255,255,255,.12);
  border-radius:999px;
  overflow:hidden;
}

.password-strength .bar{
  height:100%;
  width:0%;
  transition:width .25s ease, background .25s ease;
}

.password-strength.weak .bar{
  width:33%;
  background:var(--error);
}
.password-strength.medium .bar{
  width:66%;
  background:var(--warning);
}
.password-strength.strong .bar{
  width:100%;
  background:var(--success);
}

/* =====================================================
   BUTTON
===================================================== */
.btn-auth{
  height:52px;
  margin-top:6px;
  border-radius:var(--radius-sm);
  border:0;
  font-weight:900;
  letter-spacing:.4px;
  background:linear-gradient(180deg,var(--accent),var(--accent-strong));
  color:#111;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .2s var(--ease), transform .1s ease;
}

.btn-auth:hover{ opacity:.95; }
.btn-auth:active{ transform:scale(.98); }

/* Loading */
.btn-auth.loading{
  pointer-events:none;
  opacity:.7;
}
.btn-auth.loading::after{
  content:'';
  width:18px;
  height:18px;
  border:3px solid rgba(0,0,0,.25);
  border-top-color:#111;
  border-radius:50%;
  margin-left:10px;
  animation:spin .8s linear infinite;
}

/* =====================================================
   ALERTS
===================================================== */
.auth-alert{
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  margin-bottom:14px;
  background:rgba(0,0,0,.25);
}

.auth-alert-info{
  border:1px solid rgba(255,140,0,.45);
}

.auth-alert-error{
  border:1px solid rgba(255,77,77,.45);
}

.auth-alert-warning{
  border:1px solid rgba(255,176,32,.45);
}

/* =====================================================
   LINKS
===================================================== */
.auth-links{
  margin-top:14px;
  text-align:center;
  font-size:12px;
}

.auth-links a{
  color:rgba(255,255,255,.8);
  text-decoration:none;
}

.auth-links a:hover{
  color:#fff;
  text-decoration:underline;
}

/* =====================================================
   FOOTER
===================================================== */
.auth-footer{
  margin-top:20px;
  font-size:12px;
  color:rgba(255,255,255,.55);
  text-align:center;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeSlide{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width:480px){
  .auth-card{
    padding:24px 20px;
  }
  .auth-brand h1{
    font-size:22px;
  }
}
