/* Cosmo Streaming — pantalla de inicio de sesión (fondo de cromo + abanico de correos) */
:root{
  --bg:#f4f4f2; --ink:#0b2418; --sub:#5b7a67; --acc:#15803d;
  --pill-bg:#fff; --pill-b:#cfe3d6; --pill-c:#0b7a3b;
  --bar-bg:rgba(255,255,255,.72); --bar-b:#dcebe1; --inp-bg:#f4faf6; --inp-b:#e0ece4; --inp-c:#0b2418; --ph:#86a094;
  --btn:#0b2418; --btn-c:#fff; --btn-sh:none; --lnk:#6b8576; --lnk-b:#0b7a3b;
  --tg-bg:#fff; --tg-b:#dcebe1; --tg-on:#0b2418; --tg-on-c:#fff; --tg-c:#6b8576;
  --err-bg:#fdecec; --err-c:#b91c1c; --err-b:#f6c7c7;
  --cromo:url('../img/login/cromo_claro.svg');
}
html[data-theme="dark"]{
  --bg:#07080a; --ink:#f2fbf5; --sub:#8fa79a; --acc:#3fe08c;
  --pill-bg:rgba(255,255,255,.06); --pill-b:rgba(255,255,255,.1); --pill-c:#bfe3cf;
  --bar-bg:rgba(20,22,24,.6); --bar-b:rgba(255,255,255,.12); --inp-bg:rgba(0,0,0,.4); --inp-b:rgba(255,255,255,.08); --inp-c:#f2fbf5; --ph:#6f8c7c;
  --btn:linear-gradient(180deg,#18a458,#0b7a3b); --btn-c:#fff; --btn-sh:0 14px 26px -10px #18a458; --lnk:#7f998b; --lnk-b:#3fe08c;
  --tg-bg:rgba(255,255,255,.07); --tg-b:transparent; --tg-on:#fff; --tg-on-c:#06110b; --tg-c:#8aa597;
  --err-bg:rgba(220,38,38,.14); --err-c:#fca5a5; --err-b:rgba(220,38,38,.35);
  --cromo:url('../img/login/cromo_oscuro.svg');
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg)}
body.login-page{min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden;position:relative;
  font-family:'Manrope',system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  background:var(--cromo) center/cover no-repeat,var(--bg)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* barra superior */
.lp-top{position:relative;z-index:6;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:26px 60px}
.lp-brand{grid-column:2;display:flex;gap:11px;align-items:center;font-weight:800;font-size:17px}
.lp-logo{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#18a458,#0b7a3b);display:grid;place-items:center;box-shadow:0 8px 18px -6px #18a458}
.lp-logo img{width:23px}
.lp-theme{grid-column:3;justify-self:end;display:flex;gap:4px;background:var(--tg-bg);border:1px solid var(--tg-b);padding:4px;border-radius:99px}
.lp-theme button{width:32px;height:28px;border:0;border-radius:99px;background:none;color:var(--tg-c);display:grid;place-items:center;cursor:pointer}
.lp-theme button.on{background:var(--tg-on);color:var(--tg-on-c)}

/* titular + formulario */
.lp-hero{position:relative;z-index:6;text-align:center;padding:8px 20px 0}
.lp-pill{display:inline-flex;gap:8px;align-items:center;font-size:12px;font-weight:700;color:var(--pill-c);background:var(--pill-bg);border:1px solid var(--pill-b);padding:7px 14px;border-radius:99px}
.lp-pill i{width:8px;height:8px;border-radius:50%;background:#3fe08c}
.lp-hero h1{font-size:58px;font-weight:800;letter-spacing:-.045em;line-height:1.03;margin:16px 0 10px}
.lp-hero h1 em{font-style:normal;color:var(--acc)}
.lp-sub{color:var(--sub);font-size:15.5px;line-height:1.6;max-width:560px;margin:0 auto 22px;font-weight:500}
.lp-bar{display:flex;gap:8px;width:760px;max-width:100%;margin:0 auto;background:var(--bar-bg);border:1px solid var(--bar-b);border-radius:20px;padding:8px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 30px 60px -30px rgba(0,0,0,.4)}
.lp-in{flex:1;position:relative;min-width:0}
.lp-in svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--ph);pointer-events:none}
.lp-in input{width:100%;height:50px;border-radius:13px;border:1px solid var(--inp-b);background:var(--inp-bg);color:var(--inp-c);font:600 14px 'Manrope',sans-serif;padding:0 14px 0 42px;outline:none;transition:.15s}
.lp-in input::placeholder{color:var(--ph)}
.lp-in input:focus{border-color:#18a458;box-shadow:0 0 0 4px rgba(24,164,88,.2)}
.lp-in.pw input{padding-right:46px}
.lp-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:none;color:var(--ph);cursor:pointer;display:grid;place-items:center}
.lp-btn{width:170px;flex:none;height:50px;border:0;border-radius:13px;background:var(--btn);color:var(--btn-c);box-shadow:var(--btn-sh);font:800 15px 'Manrope',sans-serif;cursor:pointer;transition:.15s}
.lp-btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
.lp-row{display:flex;gap:22px;justify-content:center;margin-top:12px;font-size:12.5px;color:var(--lnk);font-weight:600}
.lp-row label{display:flex;gap:6px;align-items:center;cursor:pointer}
.lp-row input{accent-color:#18a458}
.lp-row a{color:var(--lnk-b);font-weight:800;text-decoration:none}
.lp-row a:hover{text-decoration:underline}
.lp-err{width:760px;max-width:100%;margin:12px auto 0;padding:10px 14px;border-radius:12px;background:var(--err-bg);border:1px solid var(--err-b);color:var(--err-c);font-size:13.5px;font-weight:700}

/* abanico de correos */
.lp-stage{position:relative;z-index:5;flex:1;min-height:470px;margin-top:20px;overflow:hidden;pointer-events:none}
.lp-fan{position:absolute;left:50%;bottom:-30px;width:0;height:0}
.em{position:absolute;width:250px;height:400px;border-radius:28px;overflow:hidden;text-align:left;transform-origin:50% 120%;box-shadow:0 30px 50px -22px rgba(16,60,40,.55);
  background:linear-gradient(160deg,var(--pc),var(--pc2));color:#fff;padding:16px}
.em:nth-child(1){left:-620px;top:-330px;transform:rotate(-13deg)}
.em:nth-child(2){left:-390px;top:-385px;transform:rotate(-6deg)}
.em:nth-child(4){left:140px;top:-385px;transform:rotate(6deg)}
.em:nth-child(5){left:370px;top:-330px;transform:rotate(13deg)}
.em .tp{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.em .tp b{font-size:19px;font-weight:800;display:block}.em .tp small{font-size:11px;opacity:.85;font-weight:600}
.em .tp img{height:26px;max-width:90px;object-fit:contain;filter:brightness(0) invert(1)}
.em .paper{background:#fff;color:#1d2228;border-radius:18px;padding:18px 16px;height:310px;font-family:'Manrope',Helvetica,Arial,sans-serif}
.em h4{font-size:17px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.em p{font-size:11.5px;color:#5b636d;line-height:1.5;margin-top:6px}
.em .code{margin:16px 0 8px;padding:14px 0;text-align:center;font-size:29px;font-weight:800;letter-spacing:.2em;background:#f5f6f8;border-radius:12px;color:var(--pc2);border:1.5px dashed var(--pc)}
.em .nn{font-size:10.5px;color:#8a919a}
.em .rbtn{margin:16px 0 10px;height:44px;border-radius:12px;background:linear-gradient(180deg,var(--pc),var(--pc2));color:#fff;display:grid;place-items:center;font-weight:800;font-size:13.5px;box-shadow:0 10px 18px -10px var(--pc)}
.em .rlink{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:700;color:#8a4a12;background:#fff4ea;border-radius:10px;padding:8px 10px}
.nf{--pc:#e50914;--pc2:#b20710}.mx{--pc:#6d28d9;--pc2:#4c1d95}.ds{--pc:#1f4fd8;--pc2:#0b1f66}.pv{--pc:#0b73e8;--pc2:#0757b5}.cr{--pc:#f47521;--pc2:#d95a0b}
/* celular del centro */
.phn{position:absolute;left:-150px;top:-470px;width:300px;height:600px;border-radius:48px;background:#0d0f11;border:9px solid #1d2125;z-index:3;padding:10px;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 50px 90px -20px rgba(0,0,0,.6),0 0 90px -10px #18a45877}
.phn .nt{position:absolute;left:50%;top:18px;margin-left:-45px;width:90px;height:24px;border-radius:99px;background:#000;z-index:2}
.phn .scr{height:100%;border-radius:36px;padding-top:44px;background:#fff;position:relative;overflow:hidden}
.phn .sb{position:absolute;top:18px;left:26px;right:26px;display:flex;justify-content:space-between;font-size:11px;font-weight:800;color:#111}
.phn .em{position:relative;left:auto;top:auto;width:100%;height:100%;border-radius:0;box-shadow:none;transform:none}
.phn .em .paper{height:auto}

/* responsive */
@media (max-width:900px){
  .lp-top{padding:20px 20px;grid-template-columns:auto 1fr}.lp-brand{grid-column:1}.lp-theme{grid-column:2}
  .lp-hero h1{font-size:40px}
  .lp-bar{flex-direction:column}.lp-btn{width:100%}
  .lp-stage{min-height:330px}.lp-fan{transform:scale(.66);transform-origin:0 100%;bottom:-20px}
}
@media (max-width:520px){
  .lp-hero h1{font-size:32px}.lp-sub{font-size:14px}
  .lp-row{flex-direction:column;gap:8px;align-items:center}
  .lp-stage{min-height:270px}.lp-fan{transform:scale(.52)}
}
/* modo oscuro: que el texto se lea aunque pase una curva de cromo por detrás */
html[data-theme="dark"] .lp-pill{background:rgba(10,12,14,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html[data-theme="dark"] .lp-brand,html[data-theme="dark"] .lp-hero h1,html[data-theme="dark"] .lp-sub,html[data-theme="dark"] .lp-row{text-shadow:0 2px 18px rgba(0,0,0,.85),0 0 4px rgba(0,0,0,.6)}
html[data-theme="dark"] .lp-theme{background:rgba(10,12,14,.78)}
/* pantallas bajitas (laptops): el abanico un poco más chico para que se vea el celular */
@media (min-width:901px) and (max-height:820px){
  .lp-hero h1{font-size:50px;margin:12px 0 8px}.lp-sub{margin-bottom:16px}.lp-top{padding:18px 60px}
  .lp-stage{min-height:360px;margin-top:10px}.lp-fan{transform:scale(.78);transform-origin:0 100%}
}
