﻿:root {
    --brand-primary: #F58220;
    --brand-secondary: #1B3A61;
    --brand-dark: #0F2544;
    --brand-mid: #334155;
    --brand-light: #F7F8FB;
    --gradient-primary: linear-gradient(135deg, #F58220 0%, #FF9A47 100%);
    --gradient-secondary: linear-gradient(135deg, #1B3A61 0%, #2A4A71 100%);
}

/* Hide global header on this page; we add our own top stripe */
header.reg-bg {
    display: none !important;
}

/* Remove layout padding so hero touches the top stripe (no white space) */
main > section {
    padding-top: 0 !important;
}

/* Enhanced top orange border with animation */
.top-stripe {
    height: 14px;
    width: 100%;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

    .top-stripe::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shine 2s infinite;
    }

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Page background with Plan Selection styling */
body {
    color: var(--brand-mid);
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-dark) 50%, #0A1C2E 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        pointer-events: none;
        z-index: -1;
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        right: -15%;
        width: 30%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(245,130,32,0.15) 0%, transparent 70%);
        pointer-events: none;
        z-index: -1;
    }

/* Left Column Hero Content */
.hero-copy {
    color: white;
    position: relative;
    z-index: 2;
}

.hero-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.hero-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(245,130,32,.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(245,130,32,.3);
    }

    50% {
        box-shadow: 0 8px 35px rgba(245,130,32,.5);
    }
}

.hero-title {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Feature List Styling */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1rem;
        color: rgba(255,255,255,0.9);
    }

    .feature-list .fi {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        background: var(--gradient-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        margin-top: 2px;
    }

        .feature-list .fi i {
            color: white;
            font-size: 0.75rem;
        }

    .feature-list .ft {
        flex: 1;
        line-height: 1.6;
    }

    .feature-list strong {
        color: white;
        font-weight: 600;
    }

/* Onboarding Features */
.onboarding-features .feature-item {
    margin-bottom: 0.75rem;
}

.onboarding-features .feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    margin-top: 2px;
}

    .onboarding-features .feature-icon i {
        color: white;
        font-size: 0.7rem;
    }

.onboarding-features .feature-text {
    flex: 1;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    font-size: 0.95rem;
}

    .onboarding-features .feature-text strong {
        color: white;
        font-weight: 600;
    }

/* Right Column Form Card */
.form-card {
    background: #FFFFFF;
    border: 2px solid #E9ECEF;
    border-radius: 1.5rem;
    box-shadow: 0 15px 50px rgba(13,27,42,.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--gradient-primary);
    }

    .form-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 60px rgba(13,27,42,.15);
    }

    .form-card h2 {
        color: var(--brand-dark);
        font-weight: 700;
    }

    .form-card p {
        color: var(--brand-mid);
    }

/* Login Instructions */
.login-instructions {
    background: linear-gradient(135deg, rgba(27,58,97,0.05) 0%, rgba(27,58,97,0.02) 100%);
    border: 2px solid rgba(27,58,97,0.15);
    border-radius: 1rem;
    padding: 1.5rem;
}

    .login-instructions .alert-icon {
        width: 30px;
        height: 30px;
        background: var(--gradient-secondary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        flex-shrink: 0;
    }

        .login-instructions .alert-icon i {
            color: white;
            font-size: 1rem;
        }

    .login-instructions strong {
        color: var(--brand-dark);
        font-weight: 600;
    }

    .login-instructions p {
        color: var(--brand-mid);
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }

    .login-instructions ol {
        color: var(--brand-mid);
        margin: 0.75rem 0;
        padding-left: 1.25rem;
    }

        .login-instructions ol li {
            margin-bottom: 0.5rem;
            line-height: 1.4;
            font-size: 0.9rem;
        }

            .login-instructions ol li strong {
                color: var(--brand-dark);
            }

/* Descope Login Component Styling */
.descope-login {
    margin-top: 1rem;
}

descope-wc {
    --descope-primary-color: var(--brand-primary);
    --descope-secondary-color: var(--brand-secondary);
    --descope-border-radius: 0.75rem;
    --descope-input-background: #FFFFFF;
    --descope-input-border: 2px solid #E9ECEF;
    --descope-button-background: var(--gradient-primary);
    --descope-button-text-color: white;
    --descope-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sticky positioning for desktop */
.sticky-lg {
    position: sticky;
    top: 2rem;
}

/* Form text styling */
.form-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Enhanced Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-logo img {
        height: 50px;
    }

    .form-card {
        margin-top: 2rem !important;
    }

    .sticky-lg {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        background: var(--brand-light);
        color: var(--brand-mid);
    }

        body::before,
        body::after {
            display: none;
        }

    .hero-copy {
        color: var(--brand-mid);
        background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-dark) 50%, #0A1C2E 100%);
        padding: 2rem;
        border-radius: 1rem;
        position: relative;
        overflow: hidden;
        margin-bottom: 2rem;
    }

        .hero-copy::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
            pointer-events: none;
        }

        .hero-copy > * {
            position: relative;
            z-index: 2;
        }

        .hero-copy .hero-title,
        .hero-copy .hero-sub,
        .hero-copy .feature-list li,
        .hero-copy .onboarding-features .feature-text {
            color: white !important;
        }

            .hero-copy .feature-list .ft strong,
            .hero-copy .onboarding-features .feature-text strong {
                color: rgba(255,255,255,0.95) !important;
            }

    .hero-title {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .form-card {
        padding: 1.5rem !important;
        margin: 0 1rem;
    }

    .hero-logo img {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .form-card .card-body {
        padding: 1.5rem !important;
    }

    .login-instructions {
        padding: 1.25rem;
    }

    .hero-logo img {
        height: 40px;
    }
}

/* Animation classes */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
