:root {
    --auth-blue: #004e89;
    --auth-blue-dark: #003d6b;
    --auth-blue-light: #e8f4fc;
    --auth-orange: #f36907;
    --auth-green: #00a651;
    --auth-text: #1a1d21;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-radius: 12px;
}

.ck-auth-section {
    padding: 2rem 0 3.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    min-height: calc(100vh - 200px);
}

.ck-auth-card {
    display: flex;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 78, 137, 0.1);
    border: 1px solid rgba(0, 78, 137, 0.08);
}

/* Left promo */
.auth-promo {
    flex: 0 0 46%;
    min-width: 0;
    background: linear-gradient(165deg, #e8f4fc 0%, #f5faff 45%, #fff 100%);
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-promo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%23c5dff0' fill-opacity='0.35' d='M0 40 Q100 0 200 40 T400 40 L400 80 L0 80 Z'/%3E%3Cpath fill='%23a8cce8' fill-opacity='0.25' d='M0 55 Q120 25 240 55 T400 55 L400 80 L0 80 Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
    pointer-events: none;
}

.auth-promo-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.65rem;
    color: var(--auth-text);
}

.auth-hero-title .accent {
    color: var(--auth-blue);
    display: block;
    font-size: 2rem;
}

.auth-hero-desc {
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.auth-feature-card {
    background: #fff;
    border-radius: var(--auth-radius);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 78, 137, 0.06);
    border: 1px solid rgba(0, 78, 137, 0.06);
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--auth-blue-light);
    color: var(--auth-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-feature-card h6 {
    margin: 0 0 3px;
    font-size: 0.88rem;
    font-weight: 700;
}

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

.auth-illustration {
    position: relative;
    margin-top: 1.25rem;
    min-height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.auth-illustration-scene {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 140px;
}

.auth-bag {
    position: absolute;
    bottom: 8px;
    border-radius: 12px 12px 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 78, 137, 0.2);
}

.auth-bag--main {
    left: 50%;
    transform: translateX(-55%);
    width: 72px;
    height: 80px;
    background: linear-gradient(180deg, #3b8fd9 0%, var(--auth-blue) 100%);
}

.auth-bag--main::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 18px;
    border: 4px solid var(--auth-blue);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    background: transparent;
}

.auth-bag--sale {
    right: 18%;
    bottom: 20px;
    width: 52px;
    height: 58px;
    background: #fff;
    border: 2px solid var(--auth-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--auth-blue);
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #7eb8e8 40%, var(--auth-blue) 100%);
    box-shadow: 0 0 20px rgba(0, 78, 137, 0.25);
}

.auth-orb--1 {
    width: 28px;
    height: 28px;
    top: 15%;
    left: 10%;
}

.auth-orb--2 {
    width: 20px;
    height: 20px;
    top: 35%;
    right: 8%;
    opacity: 0.85;
}

.auth-ring {
    position: absolute;
    border: 2px solid rgba(0, 78, 137, 0.2);
    border-radius: 50%;
    animation: auth-ring-pulse 3s ease-in-out infinite;
}

.auth-ring--1 {
    width: 50px;
    height: 50px;
    top: 8%;
    right: 22%;
}

@keyframes auth-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* Right form */
.ck-auth-form-panel {
    flex: 1;
    padding: 2.25rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.auth-form-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.auth-form-heading i {
    font-size: 1.75rem;
    color: var(--auth-blue);
}

.auth-form-heading h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    color: var(--auth-blue-dark);
}

.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;
    font-size: 1rem;
    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;
    line-height: 1;
    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;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 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-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-blue-dark);
    text-decoration: underline;
}

.auth-btn-primary {
    width: 100%;
    background: var(--auth-blue);
    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;
    transition: background 0.15s;
    cursor: pointer;
}

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

.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-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.auth-social-btn {
    flex: 1;
    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, border-color 0.15s;
}

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

.auth-social-btn .cw-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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.78rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

@media (max-width: 991px) {
    .ck-auth-card {
        flex-direction: column;
        max-width: 520px;
    }

    .auth-promo {
        flex: none;
    }

    .auth-illustration {
        display: none;
    }

    .ck-auth-form-panel {
        padding: 1.75rem 1.5rem 2rem;
    }
}

@media (max-width: 576px) {
    .ck-auth-section {
        padding: 1rem 0 2rem;
    }

    .ck-auth-card {
        border-radius: 12px;
        margin: 0 0.5rem;
    }

    .auth-social-row {
        flex-direction: column;
    }
}
