:root {
    --auth-orange: #ff6b35;
    --auth-orange-dark: #e85a28;
    --auth-green: #00a651;
    --auth-bg-promo: #faf6f1;
    --auth-text: #1a1d21;
    --auth-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-radius: 12px;
}

.auth-body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--auth-text);
    background: #fff;
    min-height: 100vh;
}

.auth-page {
    display: flex;
    min-height: 100vh;
}

/* Left promo panel */
.auth-promo {
    flex: 0 0 48%;
    max-width: 650px;
    background: var(--auth-bg-promo);
    background-image: radial-gradient(circle at 88% 8%, rgba(255, 107, 53, 0.08) 0%, transparent 45%);
    padding: 2rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-promo::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 107, 53, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.6;
    pointer-events: none;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c542, var(--auth-orange));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.auth-logo-text {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--auth-orange);
    letter-spacing: 0.02em;
}

.auth-tagline-badge {
    display: inline-block;
    background: var(--auth-green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.auth-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.auth-hero-title .accent {
    color: var(--auth-orange);
}

.auth-hero-desc {
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 380px;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: auto;
    position: relative;
    z-index: 1;
}

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

.auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff3eb;
    color: var(--auth-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

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

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

.auth-illustration {
    position: relative;
    margin-top: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.auth-illustration-scene {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 180px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 53, 0.06) 100%);
    border-radius: 20px 20px 0 0;
}

.auth-illustration-people {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.auth-person {
    width: 56px;
    height: 72px;
    background: linear-gradient(180deg, #ffb627 0%, var(--auth-orange) 100%);
    border-radius: 28px 28px 8px 8px;
    opacity: 0.9;
}

.auth-person:nth-child(2) {
    width: 64px;
    height: 88px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.auth-person:nth-child(3) {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
}

.auth-float-badge {
    position: absolute;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-float-badge.coins {
    top: 20%;
    left: 5%;
    color: #b45309;
}

.auth-float-badge.heart {
    top: 8%;
    right: 15%;
    color: #dc2626;
}

.auth-float-badge.growth {
    bottom: 45%;
    right: 0;
    color: #16a34a;
}

.auth-promo-footer {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* Right form panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    background: #fff;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.auth-form-panel .portal-ecosystem-dropdown {
    position: relative;
    z-index: 20;
}

.auth-form-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.auth-form-top .hint {
    font-size: 0.88rem;
    color: var(--auth-muted);
}

.auth-btn-outline {
    border: 2px solid var(--auth-orange);
    color: var(--auth-orange);
    background: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s;
}

.auth-btn-outline:hover {
    background: #fff7f3;
    color: var(--auth-orange-dark);
}

.auth-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem 1rem;
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-form-card--register {
    max-width: 480px;
}

.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-orange);
}

.auth-form-heading h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.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;
}

.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-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.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-orange);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-btn-primary {
    width: 100%;
    background: var(--auth-orange);
    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;
}

.auth-btn-primary:hover {
    background: var(--auth-orange-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.8rem;
    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) {
    .auth-page {
        flex-direction: column;
    }

    .auth-promo {
        flex: none;
        max-width: none;
        padding: 1.5rem;
    }

    .auth-illustration {
        display: none;
    }

    .auth-feature-list {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .auth-form-card {
        padding: 1.5rem 1.25rem;
        border: none;
        box-shadow: none;
    }

    .auth-form-panel {
        padding: 1rem;
    }

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