/**
 * CRM Postventa — pantallas de autenticación (staff)
 */
:root {
    --auth-hero-from: #1e3a5f;
    --auth-hero-mid: #206bc4;
    --auth-hero-to: #4299e1;
    --auth-card-radius: 0.75rem;
    --auth-shadow: 0 1rem 2.5rem rgba(30, 58, 95, 0.18);
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(66, 153, 225, 0.35), transparent 55%),
        linear-gradient(165deg, var(--auth-hero-from) 0%, var(--auth-hero-mid) 48%, #163352 100%);
    color: #fff;
}

.auth-body .page-center {
    min-height: 100vh;
    align-items: center;
}

.auth-shell {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    animation: auth-enter 0.45s ease-out both;
}

@keyframes auth-enter {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.85rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 1.65rem;
    color: #fff;
}

.auth-brand__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    color: #fff;
}

.auth-brand__tagline {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.82;
    color: rgba(255, 255, 255, 0.92);
}

.auth-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--auth-card-radius);
    box-shadow: var(--auth-shadow);
    background: #fff;
    color: var(--tblr-body-color, #1e293b);
}

.auth-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--auth-hero-from), var(--auth-hero-mid), var(--auth-hero-to));
}

.auth-card .card-body {
    padding: 1.75rem 1.5rem 1.5rem;
}

.auth-card__heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #1e293b;
}

.auth-card__lead {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--tblr-secondary, #64748b);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.auth-alert .ti {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #334155;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.auth-input-wrap__icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.auth-input-wrap__icon .ti {
    font-size: 1.15rem;
}

.auth-input {
    padding-left: 2.5rem;
    min-height: 2.65rem;
    border-radius: 0.5rem;
    border-color: #e2e8f0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    border-color: var(--auth-hero-mid);
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15);
}

.auth-input-wrap--password .auth-input {
    padding-right: 2.75rem;
}

.auth-input-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-input-toggle:hover {
    color: var(--auth-hero-mid);
}

.auth-input-toggle:focus-visible {
    outline: 2px solid var(--auth-hero-mid);
    outline-offset: -2px;
}

.auth-submit {
    min-height: 2.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 14px rgba(32, 107, 196, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(32, 107, 196, 0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-footer a:hover {
    color: #fff;
}
