/* Pantallas de acceso (login, recuperar y restablecer contraseña): templates/auth_base.html */
body { background: var(--bg); }
    .auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); }

    /* panel de marca */
    .auth-brand {
        position: relative; overflow: hidden;
        color: var(--on-brand);
        padding: 48px 56px;
        display: flex; flex-direction: column; justify-content: space-between;
        background:
            radial-gradient(700px 420px at 85% 10%, rgba(var(--accent-rgb), .55), transparent 65%),
            radial-gradient(600px 500px at 0% 100%, rgba(var(--accent-rgb), .3), transparent 70%),
            var(--brand);
    }
    .auth-brand::before {
        content: ""; position: absolute; inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
        background-size: 36px 36px;
        mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
        -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    }
    .auth-brand > * { position: relative; }
    .auth-logo { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.96); border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); align-self: flex-start; }
    .auth-logo img { max-height: 40px; max-width: 200px; display: block; }
    .auth-logo .auth-logo-text { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 1.3rem; }
    .auth-hero h1 { color: var(--on-brand); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; margin: 0 0 16px; }
    .auth-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 40ch; margin: 0; }
    .auth-pulse { width: 100%; max-width: 560px; height: 120px; margin: 34px 0 0; }
    .auth-pulse path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: trazo 2.6s var(--ease) .3s forwards; }
    @keyframes trazo { to { stroke-dashoffset: 0; } }
    .auth-pills { display: flex; gap: 10px; flex-wrap: wrap; }
    .auth-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
    .auth-pill i { width: 7px; height: 7px; border-radius: 50%; background: #63e6be; box-shadow: 0 0 0 4px rgba(99,230,190,.2); }
    .auth-foot { font-size: .78rem; color: rgba(255,255,255,.55); }
    .auth-foot a { color: rgba(255,255,255,.8) !important; }

    /* formulario */
    .auth-form-wrap { display: grid; place-items: center; padding: 40px 28px; }
    .auth-card { width: 100%; max-width: 400px; animation: rise .6s var(--ease) both; }
    .auth-card h2 { font-size: 1.9rem; margin: 0 0 6px; }
    .auth-card .sub { color: var(--ink-3); margin: 0 0 28px; }
    .auth-field { position: relative; margin-bottom: 14px; }
    .auth-field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }
    .auth-field input { width: 100%; height: 52px; padding: 0 16px 0 44px; font-size: 1rem; border-radius: 14px !important; }
    .auth-submit { width: 100%; height: 52px; font-size: 1rem; margin-top: 8px; border-radius: 14px !important; }
    .auth-error { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: rgba(var(--crit-rgb), .08); color: #c92a2a; font-size: .88rem; border: 1px solid rgba(var(--crit-rgb), .2); }
    .auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: .86rem; }
    .auth-links a { font-weight: 600; }
    .auth-powered { margin-top: 40px; text-align: center; font-size: .75rem; color: var(--ink-3); }
    .auth-powered a { color: var(--ink-2) !important; font-weight: 600; }
    .public-lang .lang-switch { background: var(--surface); box-shadow: var(--sh-1); }

    @media (max-width: 900px) {
        .auth { grid-template-columns: 1fr; }
        .auth-brand { padding: 28px 24px 36px; min-height: 0; border-radius: 0 0 28px 28px; }
        .auth-hero h1 { font-size: 1.9rem; margin-top: 28px; }
        .auth-pulse { height: 70px; margin-top: 18px; }
        .auth-pills, .auth-foot { display: none; }
        .auth-form-wrap { padding: 28px 22px 40px; place-items: start center; }
        .public-lang .lang-switch { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
        .public-lang .lang-switch a { color: rgba(255,255,255,.8) !important; }
        .public-lang .lang-switch a.active { color: var(--ink) !important; }
    }
.auth-info { background: rgba(var(--info-rgb), .08); color: #1864ab; border-color: rgba(var(--info-rgb), .2); }
.auth-links a { display: inline-flex; align-items: center; gap: 6px; }
