:root {
    --bg: #E8EFF7;
    --nav-blue: #001744;
    --accent-blue: #004CA8;
    --input-bg: #E8EFF7;
    --muted: #8897AD;
    --white: #ffffff;
    --card-width: 548px;
    --radius-lg: 30px;
    --radius: 15px;
    --shadow-sm: 0 4px 10px rgba(0, 23, 68, 0.06);
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Proxima Nova", "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: #0c1421;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Decorative background shapes: keep pseudo empty to avoid duplicates */
    body::before {
        content: "";
    }

/* Inline Feewise SVG placed at bottom of viewport */
.bg-feewise {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 259px; /* svg viewBox height */
    pointer-events: none;
    /* keep SVG element fully opaque so it does not create a stacking context;
       individual paths must use fill-opacity for the faint look. */
    opacity: 1;
    z-index: 0;
    overflow: visible;
    display: block;
}

/* Small bolt placed just above the Feewise pattern and 10% of its width offscreen to the left */
.bg-bolt-left {
    position: fixed;
    left: 0; /* align to the left edge of the viewport */
    bottom: 260px; /* place just above the Feewise svg (Feewise height = 259px) */
    width: 128px;
    height: auto;
    pointer-events: none;
    display: block;
    /* shift left by 10% of the SVG's own width */
    transform: translateX(-10%);
    z-index: 1; /* above .bg-feewise (0) but below page content (page z-index:2) */
}

/* Larger decorative SVG placed top-right with 15% outside top and right */
.bg-bolt-topright {
    position: fixed;
    right: -1%;
    height: auto;
    pointer-events: none;
    display: block;
    z-index: 0; /* background decoration */
}

/* Page container */
.page {
    min-height: 100vh;
    justify-content: center;
    padding: 48px 24px 72px;
    box-sizing: border-box;
    position: relative;
    z-index: 2; /* above background svgs */
}

/* Top logo above card
   Make the logo align to the same centered column as the card by using
   the same max-width as .card-wrap and centering it (margin auto). */
.page-logo {
    max-width: calc(var(--card-width) + 56px);
    margin: 0 auto 12px auto;
    display: flex;
    justify-content: center;
    z-index: 3;
}

    .page-logo img {
        height: 44px;
        display: block;
    }

/* Card wrapper and card */
.card-wrap {
    width: 100%;
    z-index: 3;
}

/* White card */
.card {
    width: var(--card-width);
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 4;
}

/* Top hero area */
.card-hero {
    /* keep the blue gradient as the base */
    background: linear-gradient(180deg, var(--nav-blue) 0%, #0b284a 100%);
    padding: 28px 36px;
    color: var(--white);
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: visible; /* allow decorative SVGs to extend outside */
    z-index: 10; /* stacking context for children */
}

    /* Decorative SVG (blue shape) positioned behind content.
   Explicit stacking so SVGs do not obscure text. */
    .card-hero .hero-bg {
        position: absolute;
        right: 0;
        top: 0;
        width: 548px;
        height: auto;
        pointer-events: none; /* allow clicks to reach UI elements */
        z-index: 11; /* behind hero content */
        display: block;
    }

    /* Ensure hero content sits above decorative SVGs */
    .card-hero .hero-content {
        position: relative;
        z-index: 20; /* above decorations */
    }

/* Hero icon should remain above decorations */
.hero-icon {
    position: absolute;
    right: 36px;
    top: 80px;
    width: 28px;
    height: 28px;
    opacity: 0.95;
    z-index: 30;
}

/* Back button inside hero */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--nav-blue);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Hero text */
.hero-title {
    font-size: 40px;
    line-height: 46px;
    font-weight: 700;
    margin: 28px 0 8px 0;
}

/* Form area */
.card-body {
    padding: 150px 48px 48px 48px;
}

.card-body .alert-container .alert-danger {
    color: #A85C00
}

.card-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.contact-card-phone {
    color: var(--nav-blue);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.contact-card-email {
    color: var(--nav-blue);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.form-group {
    margin-bottom: 12px;
}

.login-signin {
    flex: 1;
    text-align: left;
    padding-left: 12px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    background: var(--input-bg);
    border: 1px solid #D4D7E3;
    border-radius: var(--radius);
    padding: 14px 16px;
    color: #0c1421;
    font-size: 14px;
}

    .input::placeholder {
        color: var(--muted);
    }

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(180deg, #004EA8, #003EA8);
    color: var(--white);
    border: none;
    height: 52px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 20px;
    font-size: 16px;
}

.divider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

    .divider-row .line {
        flex: 1;
        height: 1px;
        background: #CFDFE2;
    }

.help-title {
    font-weight: 700;
    color: var(--nav-blue);
    text-align: center;
    font-size: 16px;
}

.contact-cards {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    color: #001744;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-outer {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(165,210,255,0.15);
    color: var(--nav-blue);
    flex-shrink: 0;
}

/* Layout helpers */
.center {
    margin: 0 auto;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 620px) {
    .bg-feewise {
        height: 196px;
        background-size: cover;
    }

    .bg-bolt-left {
        bottom: 200px;
        transform: translateX(-10%) scale(0.8);
    }

    .bg-bolt-topright {
        right: -1%;
        transform: scale(0.85);
    }

    .card {
        width: calc(100% - 32px);
    }

    .card-body {
        padding: 36px 28px 36px 28px;
    }

    .hero-icon {
        right: 24px;
        top: 46px;
    }

    .page-logo {
        max-width: calc(100% - 48px);
        margin-bottom: 10px;
    }

    /* scale decorative SVGs down on small screens */
    .card-hero .hero-bg {
        width: 300px;
    }
}

@media (max-width: 420px) {
    .bg-feewise {
        height: 120px;
    }

    .bg-bolt-left {
        bottom: 140px;
        transform: translateX(-12%) scale(0.7);
    }

    .bg-bolt-topright {
        right: -1%;
        transform: scale(0.7);
    }

    .hero-title {
        font-size: 28px;
        line-height: 34px;
    }

    .card-body {
        padding: 28px 18px 28px 18px;
    }

    .back-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}
