:root {
    --auth-navy: #002d62;
    --auth-navy-dark: #001f45;
    --auth-navy-light: #e8eef5;
    --auth-gold: #ffb627;
    --auth-text: #1a1d21;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-radius: 12px;
}

.cw-auth-section {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.cw-auth-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
}

/* Left promo */
.auth-promo {
    flex: 0 0 48%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-promo-headline {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--auth-navy);
    margin-bottom: 0.75rem;
}

.auth-promo-headline .dot {
    color: var(--auth-gold);
}

.auth-promo-desc {
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 1.75rem;
}

.auth-promo-globe {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.12;
    background: radial-gradient(circle, var(--auth-navy) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.auth-role-card {
    background: #fff;
    border: 1px solid rgba(0, 45, 98, 0.08);
    border-radius: var(--auth-radius);
    padding: 1rem 1rem 0.85rem;
    box-shadow: 0 4px 16px rgba(0, 45, 98, 0.06);
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.auth-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 45, 98, 0.1);
    color: inherit;
}

.auth-role-card .role-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.auth-role-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.auth-role-icon--customer { background: #dbeafe; color: #2563eb; }
.auth-role-icon--seller { background: #ffedd5; color: #ea580c; }
.auth-role-icon--partner { background: #dcfce7; color: #16a34a; }
.auth-role-icon--business { background: #ede9fe; color: #7c3aed; }

.auth-role-card h6 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--auth-text);
}

.auth-role-card p {
    font-size: 0.74rem;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.4;
}

.auth-role-card .role-arrow {
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--auth-border);
    position: relative;
    z-index: 1;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--auth-muted);
}

.auth-trust-item i {
    color: var(--auth-navy);
    font-size: 1rem;
}

/* Right form card */
.cw-auth-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 8px 40px rgba(0, 45, 98, 0.1);
    border: 1px solid rgba(0, 45, 98, 0.06);
}

.cw-auth-card-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--auth-navy);
    margin: 0 0 0.35rem;
}

.cw-auth-card-header p {
    font-size: 0.88rem;
    color: var(--auth-muted);
    margin: 0 0 1.25rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--auth-border);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--auth-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.auth-tab:hover {
    color: var(--auth-navy);
}

.auth-tab.is-active {
    color: var(--auth-navy);
    border-bottom-color: var(--auth-navy);
}

.auth-tab-pane {
    display: none;
}

.auth-tab-pane.is-active {
    display: block;
}

.auth-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.auth-input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.auth-input-wrap .toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    cursor: pointer;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 0.7rem 2.5rem 0.7rem 2.75rem;
    font-size: 0.9rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-navy);
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.12);
}

.auth-input.is-invalid {
    border-color: #dc3545;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.auth-link {
    color: var(--auth-navy);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn-primary {
    width: 100%;
    background: var(--auth-navy);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-btn-primary:hover {
    background: var(--auth-navy-dark);
    color: #fff;
}

.auth-btn-sso {
    width: 100%;
    border: 1px solid var(--auth-border);
    background: #fff;
    color: var(--auth-navy);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    cursor: default;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: var(--auth-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
}

.auth-social-btn:hover {
    background: #f9fafb;
    color: #111;
}

.auth-social-btn .platform-dot {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
}

.auth-social-btn .platform-dot.coinet { background: #16a34a; }
.auth-social-btn .platform-dot.ckartz { background: #ea580c; }

.auth-form-footer-text {
    text-align: center;
    font-size: 0.88rem;
    color: var(--auth-muted);
    margin-bottom: 1rem;
}

.auth-secure {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.auth-secure i {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-register-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.auth-register-scroll::-webkit-scrollbar {
    width: 6px;
}

.auth-register-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.cw-auth-page-footer {
    max-width: 1140px;
    margin: 2rem auto 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--auth-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cw-auth-page-footer-item {
    text-align: center;
}

.cw-auth-page-footer-item i {
    font-size: 1.5rem;
    color: var(--auth-navy);
    margin-bottom: 0.5rem;
    display: block;
}

.cw-auth-page-footer-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--auth-text);
    margin-bottom: 2px;
}

.cw-auth-page-footer-item span {
    font-size: 0.72rem;
    color: var(--auth-muted);
}

.auth-alert {
    border-radius: 10px;
    font-size: 0.88rem;
}

@media (max-width: 991px) {
    .cw-auth-layout {
        flex-direction: column;
    }

    .auth-promo {
        flex: none;
    }

    .auth-promo-globe {
        display: none;
    }

    .cw-auth-page-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cw-auth-section {
        padding: 1.5rem 0;
    }

    .cw-auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-role-grid {
        grid-template-columns: 1fr;
    }

    .auth-social-grid {
        grid-template-columns: 1fr;
    }

    .cw-auth-page-footer {
        grid-template-columns: 1fr;
    }
}
