@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root{color-scheme:light;--bg:#f4f7fb;--surface:#fff;--surface2:#f8fafc;--text:#172033;--muted:#6f7a8d;--line:#dfe5ee;--blue:#2867ff;--green:#74df2b;--shadow:0 18px 54px rgba(34,49,78,.09)}
:root[data-theme="dark"]{color-scheme:dark;--bg:#07101a;--surface:#0c1520;--surface2:#101b28;--text:#f4f7fb;--muted:#9ca8b8;--line:#263545;--blue:#3478ff;--green:#a8f52f;--shadow:0 24px 70px rgba(0,0,0,.26)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--text);background:var(--bg);font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.auth{max-width:920px;margin:auto;padding:28px 22px 64px}.auth-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.marca{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 14px;border-radius:12px;color:#07101a;background:var(--green);text-decoration:none;font-weight:950;letter-spacing:-.03em}.marca span{font-size:12px}.tema-auth{display:flex;padding:4px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}.tema-auth button,.theme-toggle button{display:flex;align-items:center;gap:6px;min-width:78px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}.tema-auth button.activo{background:var(--text);color:var(--bg)}.tema-auth img,.primary-auth img,.google img{width:15px;height:15px;transition:transform .18s ease}.tema-auth button:hover img,.primary-auth:hover img:first-child{transform:translateY(-1px) rotate(-5deg)}
.auth-card{max-width:560px;margin:58px auto 0;padding:34px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}.auth-card>header>span{color:var(--blue);font-size:10px;font-weight:900;letter-spacing:.1em}.auth h1{margin:9px 0 10px;font-size:clamp(32px,4vw,44px);line-height:1;letter-spacing:-.045em}.auth p{color:var(--muted);line-height:1.55}.auth-form{margin-top:24px;display:flex;flex-direction:column;align-items:stretch}.auth-form label{display:block;margin:14px 0;color:var(--muted);font-size:11px;font-weight:800}.auth-form input{display:block;width:100%;min-height:46px;margin-top:6px;padding:10px 12px;color:var(--text);border:1px solid var(--line);border-radius:10px;background:var(--surface2);outline:0}.auth-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 13%,transparent);background:var(--surface)}.primary-auth,.google{display:inline-flex;width:auto;min-height:44px;padding:11px 15px;align-items:center;justify-content:center;gap:9px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:900;text-decoration:none;cursor:pointer}.primary-auth{margin-top:19px;align-self:flex-start;min-width:158px}.primary-auth .end-icon{margin-left:8px}.primary-auth:hover .end-icon{transform:translateX(3px)}.google{margin-top:12px;align-self:flex-start;background:var(--text);color:var(--bg)}.auth-switch{margin:20px 0 0!important;text-align:center;font-size:12px}.auth-switch a{color:var(--blue);font-weight:850;text-decoration:none}.aviso{padding:12px 14px;border-left:4px solid var(--green);background:var(--surface2)}.error{color:#e85d68}@media(max-width:620px){.auth{padding-inline:16px}.auth-card{padding:26px 20px}.marca span{display:none}.tema-auth button{min-width:auto}.tema-auth button{font-size:0}.tema-auth img{width:17px;height:17px}}

/* Tipografía más limpia: bold reservado para títulos. */
body{font-weight:400}
h1,h2,h3,h4{font-weight:700}
button,a,.theme-switch button,.theme-toggle button,label{font-weight:500}
input,select,textarea{font-weight:400}

:root:not([data-theme="dark"]) input,:root:not([data-theme="dark"]) select,:root:not([data-theme="dark"]) textarea{
  background:#fff;border-color:#cbd6e4;color:var(--text)
}
:root:not([data-theme="dark"]) input::placeholder,:root:not([data-theme="dark"]) textarea::placeholder{color:#8a98aa;opacity:1}
input:disabled,select:disabled,textarea:disabled,input[readonly],textarea[readonly]{background:var(--surface-3);color:var(--muted);opacity:1}

/* Branding Software Factory: azul como acento; verde sólo para estados del producto. */
:root{--green:#2867ff}
:root[data-theme="dark"]{--green:#3478ff}
/* Branding de autenticación: variante real por tema. */
.auth-top{min-height:74px}
.marca.marca-logo{position:relative;display:flex;align-items:center;justify-content:flex-start;width:230px;min-height:72px;padding:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none}
.marca.marca-logo .auth-logo{display:block;width:100%;height:72px;object-fit:contain;object-position:left center;border-radius:0;box-shadow:none}
.auth-logo-dark{display:none!important}
:root[data-theme="dark"] .auth-logo-light{display:none!important}
:root[data-theme="dark"] .auth-logo-dark{display:block!important}
:root:not([data-theme="dark"]) .auth-logo-light{filter:drop-shadow(0 8px 18px rgba(23,38,62,.08))}
:root[data-theme="dark"] .marca.marca-logo{width:190px}
:root[data-theme="dark"] .marca.marca-logo .auth-logo-dark{height:72px;object-fit:cover;border-radius:14px;box-shadow:0 10px 28px rgba(0,0,0,.24)}
@media(max-width:620px){
  .marca.marca-logo{width:180px;min-height:58px}
  .marca.marca-logo .auth-logo{height:58px}
  :root[data-theme="dark"] .marca.marca-logo{width:154px}
}



/* ===== Clean Minimal auth pass ===== */
:root{--bg:#F9FAFB;--surface:#FFFFFF;--surface2:#FFFFFF;--text:#111827;--muted:#4B5563;--line:#E5E7EB;--blue:#2563EB;--shadow:none}
:root[data-theme="dark"]{--bg:#09090B;--surface:#111113;--surface2:#111113;--text:#F9FAFB;--muted:#A1A1AA;--line:#27272A;--blue:#3B82F6;--shadow:none}
body{font-family:"Inter",ui-sans-serif,system-ui,sans-serif;line-height:1.5}.auth{max-width:900px;padding-top:24px}.auth-top{min-height:64px}
.auth-card{max-width:520px;margin-top:48px;padding:32px;border-radius:8px;box-shadow:none}.auth h1{font-size:clamp(32px,4vw,42px);font-weight:700;letter-spacing:-.045em}
.auth p{line-height:1.6}.auth-form label{font-size:11px;font-weight:600}.auth-form input{min-height:44px;border-radius:7px;background:var(--surface)}
.primary-auth,.google{min-height:42px;border-radius:7px;font-weight:600;box-shadow:none}.tema-auth{border-radius:7px}.tema-auth button{border-radius:5px;font-weight:600}
.aviso{border-left-width:3px;border-radius:4px;background:var(--surface2)}

/* ===== Warm Editorial auth ===== */
:root{--bg:#F7F3ED;--surface:#FFFEFC;--surface2:#FBF7F2;--text:#202124;--muted:#756E67;--line:#E6DDD3;--blue:#C85D32;--green:#C85D32;--shadow:0 18px 60px rgba(75,54,38,.08)}
:root[data-theme="dark"]{--bg:#1B1917;--surface:#24211E;--surface2:#2B2723;--text:#F7F1EA;--muted:#B8AEA5;--line:#3D3731;--blue:#E07A4F;--green:#E07A4F;--shadow:0 22px 70px rgba(0,0,0,.22)}
.auth-card{border-radius:14px;box-shadow:var(--shadow);background:var(--surface)}.auth-card>header>span,.auth-switch a{color:var(--blue)}.auth h1{font-weight:700}.auth-form input{border-radius:9px;background:var(--surface2)}.primary-auth{background:var(--blue)}.google{background:#2C2A28;color:#fff}.tema-auth{background:var(--surface);border-radius:9px}
