﻿:root {
    --navy-980: #051326;
    --navy-940: #071a32;
    --navy-900: #082142;
    --navy-820: #0b2a4f;
    --navy-760: #123963;
    --ink: #0a1831;
    --ink-2: #22304a;
    --muted: #647089;
    --line: #d9e1eb;
    --line-dark: rgba(255,255,255,.14);
    --paper: #ffffff;
    --cloud: #f4f7fb;
    --cream: #fff8ef;
    --orange: #ff7a18;
    --orange-dark: #e95f00;
    --gold: #f3b23d;
    --green: #23b26d;
    --danger: #e64c3c;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 10px 28px rgba(5, 19, 38, .10);
    --shadow-md: 0 24px 64px rgba(5, 19, 38, .16);
}

/* Top bar styled to match the marketing site header (orange accent bar + dark navy nav) */
.bg-brand-gradient {
    height: auto !important;
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(5, 19, 38, .94) !important;
    background-image: none !important;
    border-top: 8px solid var(--orange);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}

    .bg-brand-gradient .btn-link {
        color: rgba(255,255,255,.82) !important;
        font-size: .93rem;
        font-weight: 700;
        text-decoration: none;
    }

        .bg-brand-gradient .btn-link:hover {
            color: #fff !important;
        }

/* Page footer legibility on the dark background */
.flex-1 > .d-block.text-dark {
    color: rgba(255,255,255,.64) !important;
    padding: 18px 0 28px;
}

    .flex-1 > .d-block.text-dark a {
        color: var(--orange) !important;
    }

        .flex-1 > .d-block.text-dark a:hover {
            color: #fff !important;
        }

/* Page background matching the marketing hero (html body needed to out-rank app.bundle.css) */
html body {
    color: var(--ink);
    background: var(--navy-940);
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    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;
    }

/* 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 {
    color: #fff;
    background: rgb(50 63 81);
    border: 1px solid rgb(123 133 147);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

    .hero-title em {
        color: var(--orange);
        font-style: normal;
    }

.hero-sub {
    color: rgba(255,255,255,.80);
    font-size: clamp(1.08rem, 1.55vw, 1.32rem);
    line-height: 1.6;
    font-weight: 400;
}

/* 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: 22px;
        height: 22px;
        background: var(--orange);
        border-radius: 7px;
        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(--orange);
    border-radius: 7px;
    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: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

    .form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--orange);
    }

    .form-card h2 {
        color: var(--ink);
        font-weight: 700;
        letter-spacing: -.03em;
    }

    .form-card p {
        color: var(--muted);
    }

/* Login Instructions */
.login-instructions {
    background: var(--cream);
    border: 1px solid rgba(255,122,24,.36);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

    .login-instructions .alert-icon {
        width: 30px;
        height: 30px;
        background: var(--navy-900);
        border-radius: 10px;
        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(--ink);
        font-weight: 700;
    }

    .login-instructions p {
        color: var(--muted);
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }

    .login-instructions ol {
        color: var(--muted);
        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(--ink);
            }

/* Descope Login Component Styling */
.descope-login {
    margin-top: 1rem;
}

descope-wc {
    --descope-primary-color: var(--orange);
    --descope-secondary-color: var(--navy-940);
    --descope-border-radius: 12px;
    --descope-input-background: #FFFFFF;
    --descope-input-border: 1px solid #cfd9e6;
    --descope-button-background: var(--orange);
    --descope-button-text-color: white;
    --descope-font-family: "Roboto", 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) {
    html body {
        background: var(--cloud);
        color: var(--ink-2);
    }

        body::before,
        body::after {
            display: none;
        }

    .hero-copy {
        color: #fff;
        background: var(--navy-940);
        border: 1px solid var(--line-dark);
        padding: 2rem;
        border-radius: var(--radius-lg);
        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);
    }
}
