/* Split-screen auth — admin + customer login */
:root {
    --auth-primary: var(--primary-color, linear-gradient(45deg, #3498db 0%, #2ecc71 100%));
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-card: #ffffff;
    --auth-canvas: #f4f6fb;
}

body:has(.auth-shell) {
    background: var(--auth-canvas);
    min-height: 100vh;
}

body:has(.auth-shell) .main-wrapper {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    background: var(--auth-canvas);
}

.auth-brand {
    display: none;
    position: relative;
    overflow: hidden;
    color: #fff;
    flex: 0 0 46%;
    max-width: 46%;
    padding: 3.25rem 3.5rem;
    background: linear-gradient(45deg, #3498db 0%, #2ecc71 100%);
    background: var(--primary-color);
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: none;
    z-index: 0;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -90px;
    bottom: -80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 0;
}

.auth-brand-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: authRise 0.7s ease both;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-brand h1 {
    margin: 1.5rem 0 0.85rem;
    font-size: clamp(1.85rem, 2.4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-brand p.lead {
    margin: 0;
    max-width: 28rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.auth-features {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.auth-features .icon {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.15rem;
}

.auth-features strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.auth-features span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.auth-brand-foot {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    overflow-y: auto;
    min-height: 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.28);
    padding: 2.25rem 2rem 1.75rem;
    animation: authRise 0.65s ease 0.08s both;
}

.auth-card-lg {
    max-width: 560px;
}

.step-content {
    display: none;
}

.step-content.current {
    display: block;
}

.indicator-progress {
    display: none;
}

.auth-features li.stepper-item {
    opacity: 0.55;
}

.auth-features li.stepper-item.current {
    opacity: 1;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-height: 52px;
    width: auto;
}

.auth-card h2 {
    margin: 0 0 0.35rem;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
}

.auth-card .auth-sub {
    margin: 0 0 1.65rem;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 0.4rem;
}

.auth-card .form-control,
.auth-card .input-group-text {
    min-height: 48px;
    border-color: var(--auth-line);
    background: #f8fafc;
}

.auth-card .form-control {
    border-radius: 0.75rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.95rem;
}

.auth-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-card .input-group-text {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    color: var(--auth-muted);
}

.auth-card .form-control:focus {
    background: #fff;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.22);
}

.auth-card .input-group:focus-within .input-group-text,
.auth-card .input-group:focus-within .form-control {
    border-color: #3498db;
    background: #fff;
}

.auth-card .pass-group .form-control {
    padding-right: 2.75rem;
    border-radius: 0.75rem;
}

.auth-card .btn-primary {
    min-height: 48px;
    border: 0;
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--auth-primary);
    box-shadow: 0 10px 20px -12px rgba(52, 152, 219, 0.65);
}

.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
    background: var(--auth-primary);
    filter: brightness(0.94);
}

.auth-card .form-check-input:checked {
    background: var(--auth-primary);
    border-color: #3498db;
}

.auth-card .form-check-label,
.auth-card .auth-meta a {
    font-size: 0.875rem;
}

.auth-card .auth-meta a {
    font-weight: 600;
    text-decoration: none;
}

.auth-card .auth-register {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-ink);
}

.auth-card .auth-register a {
    font-weight: 600;
    text-decoration: none;
}

.auth-card .auth-copy {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

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

@media (min-width: 992px) {
    .auth-brand {
        display: flex;
    }

    .auth-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.6rem 1.2rem 1.35rem;
        box-shadow: none;
        border: 0;
        background: transparent;
    }

    .auth-panel {
        padding: 1.25rem 0.75rem 1.5rem;
        align-items: stretch;
    }
}
