/* Auth — colores Compu Express (oscuro + tarjeta) */

.auth-light {
    --auth-bg: #0b0f18;
    --auth-surface: rgba(18, 26, 48, 0.96);
    --auth-border: rgba(255, 255, 255, 0.11);
    --auth-text: #f8fafc;
    --auth-muted: #94a3b8;
    --auth-accent: #3b82f6;
    --auth-accent-2: #06b6d4;
    --auth-glow: rgba(59, 130, 246, 0.35);

    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Fondo ambiental (mismo tono que el sitio) */
.auth-light::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 95% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 5% 75%, rgba(99, 102, 241, 0.06) 0%, transparent 48%);
}

.auth-light__main,
.auth-light-footer {
    position: relative;
    z-index: 1;
}

.auth-light__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.auth-light-card {
    display: block;
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 48px);
    background: linear-gradient(
        165deg,
        rgba(28, 38, 62, 0.98) 0%,
        rgba(14, 20, 38, 0.98) 100%
    );
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.auth-light-card--register {
    max-width: 440px;
}

.auth-light-card__body {
    padding: 28px 28px 24px;
    overflow-y: auto;
    min-width: 0;
}

.auth-light-card--register .auth-light-card__body {
    padding: 24px 26px 22px;
}

/* Títulos */
.auth-light-brand {
    display: inline-block;
    margin-bottom: 22px;
    line-height: 0;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-light-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.auth-brand-logo {
    display: block;
    height: 32px !important;
    width: auto !important;
    max-width: 108px !important;
    max-height: 32px !important;
    object-fit: contain;
    border-radius: 8px;
}

/* Títulos */
.auth-light-title {
    margin: 0 0 8px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.auth-light-lead {
    margin: 0 0 24px;
    font-size: 0.9375rem;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-light-card--register .auth-light-lead {
    margin-bottom: 20px;
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.auth-form--register {
    gap: 14px;
}

.auth-float-field {
    position: relative;
}

.auth-float-field input {
    width: 100%;
    padding: 18px 14px 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--auth-text);
    background: rgba(8, 12, 24, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.auth-float-field input::placeholder {
    color: transparent;
}

.auth-float-field label {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    font-weight: 400;
    color: #64748b;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.auth-float-field input:focus,
.auth-float-field input:not(:placeholder-shown) {
    padding-top: 22px;
    padding-bottom: 6px;
}

.auth-float-field input:focus {
    border-color: var(--auth-accent);
    background: rgba(8, 12, 24, 0.72);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-float-field input:focus + label,
.auth-float-field input:not(:placeholder-shown) + label {
    top: 10px;
    transform: translateY(0);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--auth-accent);
}

.auth-float-field input:not(:focus):not(:placeholder-shown) + label {
    color: var(--auth-muted);
}

.auth-float-field--password input {
    padding-right: 44px;
}

.auth-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-pwd-toggle:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.auth-pwd-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 2px;
    font-size: 0.875rem;
    color: var(--auth-muted);
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.auth-error {
    display: none;
    margin: -6px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.auth-error.is-visible {
    display: block;
}

.auth-light-btn {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent) 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--auth-glow);
    transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.auth-light-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
}

.auth-light-btn:active {
    transform: scale(0.99);
}

.auth-light-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-light-switch {
    margin: 22px 0 0;
    font-size: 0.875rem;
    color: var(--auth-muted);
    text-align: center;
    line-height: 1.5;
}

.auth-light-switch a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}

.auth-light-switch a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.auth-light-footer {
    flex-shrink: 0;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* Admin */
.auth-light-card--admin {
    --auth-accent: #f97316;
    --auth-glow: rgba(249, 115, 22, 0.3);
}

.auth-light-card--admin .auth-light-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.auth-light-card--admin .auth-float-field input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.auth-light-card--admin .auth-float-field input:focus + label {
    color: #fb923c;
}

.auth-hint {
    margin: -8px 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.auth-light-card.animate-auth {
    animation: authFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 639px) {
    .auth-light-card__body {
        padding: 24px 22px 20px;
    }

    .auth-light-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 640px) {
    .auth-light .auth-float-field input {
        font-size: 16px;
    }
}

@media (max-height: 720px) {
    .auth-light-card__body {
        padding: 20px 22px 18px;
    }

    .auth-light-brand {
        margin-bottom: 16px;
    }

    .auth-light-lead {
        margin-bottom: 16px;
    }

    .auth-form {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-light-card.animate-auth {
        animation: none;
    }

    .auth-light-btn:active,
    .auth-light-brand:hover {
        transform: none;
    }
}
