:root {
    --sg-navy: #121d33;
    --sg-navy-card: #1a2744;
    --sg-navy-deep: #0c1424;
    --sg-gold: #d4af37;
    --sg-gold-hover: #e0bc4a;
    --sg-gold-text: #121d33;
    --sg-white: #ffffff;
    --sg-muted: rgba(255, 255, 255, 0.72);
    --sg-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body.safeguard-landing {
    min-height: 100vh;
    font-family: var(--sg-font);
    color: var(--sg-white);
    background: var(--sg-navy-deep);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.safeguard-page {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

/* Left: solid navy. Right: full photo with soft merge at the seam. */
.safeguard-page__hero {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--sg-navy);
    overflow: hidden;
}

.safeguard-page__hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: min(68vw, 980px);
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: 40% center;
    display: block;
}

.safeguard-page__hero-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--sg-navy) 0%,
        var(--sg-navy) 28%,
        rgba(18, 29, 51, 0.75) 38%,
        rgba(18, 29, 51, 0.25) 48%,
        transparent 58%
    );
}

.safeguard-layout {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.75rem 2.5rem 3.5rem;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 3rem;
    align-items: center;
}

/* —— Logo —— */
.safeguard-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 2.75rem;
    line-height: 0;
}

.safeguard-logo__img {
    display: block;
    width: min(300px, 72vw);
    max-width: 100%;
    height: auto;
}

.safeguard-logo--compact .safeguard-logo__img {
    width: min(200px, 48vw);
}

/* —— Hero —— */
.safeguard-hero__title {
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.35rem;
    max-width: 560px;
}

.safeguard-hero__accent {
    color: var(--sg-gold);
}

.safeguard-hero__lead {
    max-width: 500px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--sg-muted);
    margin-bottom: 2.75rem;
}

.safeguard-stats {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.safeguard-stat__value {
    display: block;
    font-size: 2.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.safeguard-stat__value--gold {
    color: var(--sg-gold);
}

.safeguard-stat__label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.safeguard-partners__label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 1.15rem;
}

.safeguard-partners {
    margin-top: 0.5rem;
}

.safeguard-partners__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem 2.25rem;
    min-height: 36px;
}

.safeguard-partner {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.safeguard-partner__img {
    display: block;
    width: auto;
    height: auto;
    max-height: 32px;
    min-height: 20px;
    object-fit: contain;
    object-position: left center;
    opacity: 1;
}

/* Chase wordmark is dark — show white on navy */
.safeguard-partner__img[alt="Chase"] {
    filter: brightness(0) invert(1);
}

.safeguard-partner:hover .safeguard-partner__img {
    opacity: 1;
}

/* —— Login card (single layer — no ghost from background image) —— */
.safeguard-login-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 3;
}

.safeguard-login-card {
    width: 100%;
    max-width: 388px;
    background: rgba(22, 34, 58, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 2.15rem 2rem 1.85rem;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.12),
        0 28px 72px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.safeguard-login-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.safeguard-login-card__sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 1rem;
}

.safeguard-access-notice {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-left: 4px solid var(--sg-gold, #d4af37);
    background: rgba(18, 29, 51, 0.55);
    text-align: left;
}

.safeguard-access-notice__title {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sg-gold, #d4af37);
}

.safeguard-access-notice__text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.safeguard-access-notice__text strong {
    color: var(--sg-white, #fff);
    font-weight: 600;
}

.safeguard-field {
    margin-bottom: 0.9rem;
    position: relative;
}

.safeguard-field input {
    width: 100%;
    padding: 0.92rem 1.1rem;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--sg-white);
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.safeguard-field input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.safeguard-field--password input {
    padding-right: 2.85rem;
}

.safeguard-field__toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.safeguard-form__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.55rem 0 1.35rem;
    font-size: 0.8rem;
}

.safeguard-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
    cursor: default;
}

.safeguard-check input {
    accent-color: var(--sg-gold);
    width: 14px;
    height: 14px;
}

.safeguard-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.8rem;
}

.safeguard-link:hover {
    color: var(--sg-white);
    text-decoration: underline;
}

.safeguard-btn {
    display: block;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    font-size: 1.02rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.safeguard-btn--primary {
    background: linear-gradient(180deg, #e4c45a 0%, var(--sg-gold) 45%, #b8942a 100%);
    color: var(--sg-gold-text);
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.safeguard-btn--primary:hover {
    background: linear-gradient(180deg, #edd06a 0%, var(--sg-gold-hover) 100%);
    transform: translateY(-1px);
}

.safeguard-btn--outline {
    background: rgba(18, 29, 51, 0.5);
    color: var(--sg-white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.safeguard-btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.safeguard-login-card__fine {
    margin-top: 1.35rem;
    font-size: 0.68rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

.safeguard-staff-link {
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
}

.safeguard-staff-link:hover {
    text-decoration: underline;
}

.safeguard-flashes {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    max-width: 90%;
}

.safeguard-flash {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    background: #7f1d1d;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.safeguard-flash--success {
    background: #14532d;
}

@media (max-width: 960px) {
    .safeguard-page__hero-img {
        width: 100%;
        object-position: 70% center;
    }

    .safeguard-page__hero-fade {
        background: linear-gradient(
            180deg,
            var(--sg-navy) 0%,
            var(--sg-navy) 42%,
            rgba(18, 29, 51, 0.5) 58%,
            transparent 78%
        );
    }

    .safeguard-layout {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.35rem 2.5rem;
        gap: 2rem;
    }

    .safeguard-login-wrap {
        justify-content: center;
    }

    .safeguard-hero__title {
        font-size: 1.9rem;
    }

    .safeguard-stats {
        gap: 2rem;
    }

    .safeguard-partners__logos {
        gap: 1.25rem 1.75rem;
    }
}
