/* Auth pages — aligned with zip/app/(auth)/login v0 split layout */
body.ct-page-no-main-nav:has(.auth-zip-shell) > #ct-page-scale > .container-fluid,
body.ct-page-no-main-nav:has(.auth-zip-shell) > #ct-page-scale > .container.my-4 {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.ct-page-no-main-nav:has(.auth-zip-shell) footer.bg-light,
body.ct-page-no-main-nav:has(.auth-zip-shell) footer.border-top {
    display: none;
}

.auth-zip-shell {
    min-height: 100vh;
    display: flex;
    background: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.auth-zip-sidebar {
    display: none;
    width: 480px;
    flex-shrink: 0;
    flex-direction: column;
    padding: 64px 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.auth-zip-sidebar__orb {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 288px;
    height: 288px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.auth-zip-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.auth-zip-brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.auth-zip-brand__text strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-zip-brand__text span {
    display: block;
    color: #bfdbfe;
    font-size: 12px;
    line-height: 1.3;
}

.auth-zip-sidebar__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.auth-zip-sidebar__headline {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.auth-zip-sidebar__desc {
    margin: 0 0 40px;
    color: rgba(219, 234, 254, 0.95);
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    max-width: 22em;
}

.auth-zip-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-zip-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(219, 234, 254, 0.92);
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.auth-zip-features li i {
    color: #bfdbfe;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-zip-sidebar__extra {
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.auth-zip-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.auth-zip-main__inner {
    width: 100%;
    max-width: 448px;
}

.auth-zip-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.auth-zip-mobile-brand__logo {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.auth-zip-mobile-brand span {
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
}

.auth-zip-heading {
    margin-bottom: 28px;
}

.auth-zip-heading__kicker {
    margin: 0 0 8px;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-zip-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(1.625rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.auth-zip-heading__sub {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 36em;
}

.auth-zip-heading__highlight {
    display: inline-block;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.auth-zip-heading__sub-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.auth-zip-aside-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.auth-zip-aside-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.auth-zip-aside-links a:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
    text-decoration: none;
}

.auth-zip-aside-links a i {
    color: #3b82f6;
    font-size: 12px;
}

.auth-zip-section-title {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.auth-zip-section-title--qr {
    text-align: center;
}

.auth-zip-section-desc {
    margin: -10px 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.auth-zip-section-desc--qr {
    text-align: center;
    margin-bottom: 14px;
}

.auth-zip-link-inline {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.auth-zip-link-inline:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-zip-hint {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.auth-zip-hint--success {
    color: #15803d;
}

.auth-zip-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-zip-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.auth-zip-field:last-child {
    margin-bottom: 0;
}

.auth-zip-track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.auth-zip-track-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.auth-zip-track-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-zip-track-option span {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.auth-zip-track-option input:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.auth-zip-track-option input:focus-visible + span {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.auth-zip-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

.auth-zip-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.auth-zip-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0 16px;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-zip-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.auth-zip-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-zip-input-group {
    position: relative;
}

.auth-zip-input-group .auth-zip-input {
    padding-right: 44px;
}

.auth-zip-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.auth-zip-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.auth-zip-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

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

.auth-zip-links {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.auth-zip-links a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.auth-zip-links a:hover {
    text-decoration: underline;
}

.auth-zip-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.auth-zip-alert strong {
    font-weight: 700;
    color: inherit;
}

.auth-zip-alert p {
    margin: 0;
    line-height: 1.65;
}

.auth-zip-alert .small {
    font-size: 12px;
    opacity: 0.92;
}

.auth-zip-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-zip-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.auth-zip-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.auth-zip-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.auth-zip-check label {
    cursor: pointer;
}

.auth-zip-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.auth-zip-captcha-row .auth-zip-input {
    max-width: 12rem;
}

.auth-zip-code-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.auth-zip-code-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

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

    .auth-zip-mobile-brand {
        display: none;
    }
}

.auth-zip-shell--wide .auth-zip-main__inner {
    max-width: min(100%, 980px);
}

.auth-zip-shell--wide .auth-zip-heading {
    margin-bottom: 22px;
}

.auth-zip-shell--wide .auth-zip-heading__sub-text {
    max-width: 42em;
}

@media (min-width: 768px) {
    .auth-zip-card {
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    }
}

.auth-zip-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
}

.auth-zip-tabs__item {
    flex: 1;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-zip-tabs__item:hover {
    color: #1e293b;
    text-decoration: none;
}

.auth-zip-tabs__item--active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.auth-zip-card--login-split {
    padding: 28px 32px;
}

.auth-login-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.auth-login-split__form {
    min-width: 0;
}

.auth-login-split__qr {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.auth-qr-guide {
    width: 100%;
    max-width: 320px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    text-align: left;
}

.auth-qr-guide__warn {
    margin: 0 0 10px;
    color: #b45309;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-qr-guide__warn i {
    margin-right: 6px;
}

.auth-qr-guide__steps {
    margin: 0;
    padding-left: 1.25rem;
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
}

.auth-qr-guide__steps li + li {
    margin-top: 4px;
}

.auth-qr-guide__steps strong {
    color: #0f172a;
    font-weight: 700;
}

.auth-login-split__divider {
    position: relative;
    align-self: stretch;
    width: 1px;
    min-height: 240px;
    background: #e2e8f0;
}

.auth-login-split__divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 0;
    background: #fff;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.auth-qr--split {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    width: 100%;
    max-width: 320px;
}

@media (max-width: 767.98px) {
    .auth-zip-card--login-split {
        padding: 24px 20px;
    }

    .auth-login-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-login-split__divider {
        width: 100%;
        min-height: 0;
        height: 1px;
        margin: 24px 0;
    }

    .auth-login-split__divider span {
        padding: 0 12px;
    }

    .auth-login-split__qr {
        justify-content: stretch;
    }

    .auth-qr--split {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .auth-zip-main {
        padding: 32px 16px;
    }

    .auth-zip-card {
        padding: 24px 20px;
    }
}

.auth-qr__warn {
    font-size: 12px;
    color: #b45309;
    text-align: center;
    margin: -6px 0 12px;
    line-height: 1.55;
}

.auth-qr {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-qr__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.auth-qr__desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.auth-qr__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 212px;
    height: 212px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin: 0 auto 10px;
    overflow: hidden;
}

.auth-qr__box canvas,
.auth-qr__box img {
    display: block;
    width: 200px;
    height: 200px;
}

.auth-qr__status {
    font-size: 13px;
    color: #64748b;
    min-height: 1.4em;
    margin-bottom: 8px;
    line-height: 1.5;
    max-width: 320px;
    word-break: normal;
    white-space: normal;
}

.auth-qr__status--success { color: #15803d; }
.auth-qr__status--warn { color: #b45309; }
.auth-qr__status--info { color: #2563eb; }

.auth-qr__refresh {
    border: 0;
    background: transparent;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.auth-zip-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.auth-zip-divider::before,
.auth-zip-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
