:root{
  --accent: #f25a1f;
  --accent2:#c84212;

  --black:#0b0b0c;
  --black2:#15171c;

  --text:#0f172a;
  --muted:#64748b;

  --card:#ffffff;
  --border: rgba(15,23,42,.10);

  --shadow: 0 30px 70px rgba(2,8,23,.20);
  --shadow2: 0 18px 40px rgba(2,8,23,.12);

  --radius: 26px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
}

/* ==============================
   FONDO GENERAL
================================ */
body.auth{
  overflow: hidden;
  min-height: 100vh;
  margin: 0;
  display:block;
  background:
    radial-gradient(1000px 600px at 15% 0%, rgba(242,90,31,.16), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(11,11,12,.10), transparent 60%),
    #eef2ff;
}

/* ==============================
   CONTENEDOR PRINCIPAL (FULL)
================================ */
.auth-shell{
  width: 100%;
  height: 100vh;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}

/* Asegura altura completa en desktop */
.auth-left,
.auth-right{
  height: 100vh;
}

/* ==============================
   PANEL IZQUIERDO
================================ */
.auth-left{
  position: relative;
  padding: 44px 44px 34px;
  color: #f8fafc;
  background: linear-gradient(160deg, var(--black2), var(--black));
}

/* Ondas decorativas */
.auth-left::before{
  content:"";
  position:absolute;
  inset:-30% -30% auto -30%;
  height: 90%;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(closest-side at 60% 55%, rgba(242,90,31,.14), transparent 62%),
    radial-gradient(closest-side at 80% 35%, rgba(255,255,255,.06), transparent 60%);
  filter: blur(2px);
  opacity: .9;
}

.auth-left::after{
  content:"";
  position:absolute;
  inset:auto -30% -40% -30%;
  height: 85%;
  background:
    radial-gradient(closest-side at 25% 20%, rgba(242,90,31,.16), transparent 60%),
    radial-gradient(closest-side at 70% 35%, rgba(255,255,255,.07), transparent 62%);
  filter: blur(2px);
  opacity: .85;
}

.auth-left-inner{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

/* Logo */
.auth-badge{
  width: 260px;
  max-width: 100%;
  margin-bottom: 8px;
}
.auth-badge img{
  width:100%;
  height:auto;
  display:block;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.45));
}

/* Texto */
.auth-left h1{
  margin: 6px 0 4px;
  font-size: 58px;
  line-height: 1.0;
  letter-spacing: -1.2px;
  font-weight: 900;
}
.auth-left .dots{
  color: var(--accent);
}

.auth-left p{
  margin: 0;
  max-width: 420px;
  color: rgba(248,250,252,.82);
  font-weight: 550;
  line-height: 1.45;
}

.auth-left-footer{
  margin-top:auto;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(248,250,252,.65);
}

/* ==============================
   PANEL DERECHO (FORM)
================================ */
.auth-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 48px;
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(242,90,31,.10), transparent 60%),
    #f8fafc;
}

.auth-card{
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: var(--shadow2);
  padding: 30px;
}

.auth-card-top h2{
  margin:0;
  font-size: 30px;
  font-weight: 900;
}
.auth-card-top p{
  margin: 8px 0 18px;
  color: var(--muted);
}

/* Error */
.auth-alert{
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.28);
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 650;
}

/* ==============================
   FORM
================================ */
.auth-form label{
  display:block;
  font-size: 13px;
  font-weight: 900;
  margin: 12px 0 8px;
}

.field{
  display:flex;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(15,23,42,.12);
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 14px;
}

.field:focus-within{
  background: #fff;
  border-color: rgba(242,90,31,.55);
  box-shadow: 0 0 0 4px rgba(242,90,31,.16);
}

.icon{
  width: 28px;
  display:grid;
  place-items:center;
  opacity: .75;
}

.field input{
  border:0;
  outline:0;
  width:100%;
  font-size: 14px;
  background: transparent;
  color: var(--text);
}

/* Botﾃｳn */
.btn{
  margin-top: 18px;
  width:100%;
  padding: 14px 16px;
  border:0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color:#fff;
  font-weight: 950;
  cursor:pointer;
  box-shadow: 0 16px 30px rgba(242,90,31,.22);
}
.btn:hover{ filter: brightness(.98); }

/* Meta */
.auth-meta{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ==============================
   RESPONSIVE (MÓVIL) - PRO
================================ */
@media (max-width: 980px){

  /* Fondo y contenedor */
  body.auth{
    overflow: auto; /* en móvil sí dejamos scroll por seguridad */
    background:
      radial-gradient(900px 600px at 20% 0%, rgba(242,90,31,.12), transparent 60%),
      #eef2ff;
  }

  .auth-shell{
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    background: transparent;
  }

  /* Quitamos full-height en paneles */
  .auth-left,
  .auth-right{
    height: auto;
  }

  /* IZQUIERDA -> se vuelve header compacto */
  .auth-left{
    padding: 18px 18px 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* Recorta decoraciones para que no se vea “cargado” */
  .auth-left::before,
  .auth-left::after{
    opacity: .45;
    filter: blur(6px);
  }

  .auth-left-inner{
    gap: 10px;
  }

  /* Logo más compacto */
  .auth-badge{
    width: min(210px, 70vw);
    margin-bottom: 2px;
  }

  /* Título del hero más bonito en móvil */
  .auth-left h1{
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
    margin: 6px 0 2px;
  }

  .auth-left p{
    max-width: 100%;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(248,250,252,.82);
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  /* Footer del hero no lo mandes hasta abajo (estaba empujando) */
  .auth-left-footer{
    margin-top: 6px;
    padding-top: 0;
    opacity: .85;
  }

  /* DERECHA -> form arriba, tarjeta grande y centrada */
  .auth-right{
    padding: 14px 16px 22px;
    background: transparent;
    justify-content: flex-start;
  }

  .auth-card{
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(2,8,23,.14);
  }

  /* Tipografía del form */
  .auth-card-top h2{
    font-size: 22px;
  }

  .auth-card-top p{
    margin-top: 6px;
    font-size: 13px;
  }

  /* Campos más compactos */
  .field{
    padding: 11px 12px;
    border-radius: 14px;
  }

  .field input{
    font-size: 14px;
  }

  /* Botón más “app-like” */
  .btn{
    padding: 13px 14px;
  }

  /* Meta */
  .auth-meta{
    font-size: 11px;
  }


}
