:root {
    --bg: #f4f8f8;
    --orange: #f97316;
    --orange-mid: #ea580c;
    --navy: #1e3a8a;
    --teal: #0d9488;
    --muted: #4b6470;
    --text: #1f3b5b;
}

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

html.notifyfbc-landing-page,
body.notifyfbc-landing-page {
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--bg) !important;
}

body.notifyfbc-landing-page {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

body.notifyfbc-landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 92% 5%, rgba(249, 115, 22, 0.18) 0 280px, transparent 281px),
        radial-gradient(circle at 5% 95%, rgba(13, 148, 136, 0.14) 0 260px, transparent 261px),
        radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.07) 0 500px, transparent 501px);
    z-index: 0;
    pointer-events: none;
}

.landing-scroll {
    position: relative;
    z-index: 1;
    width: 100%;
}

.landing-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.page-inner {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
}

.brand-header-stacked {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
}

.brand-header img {
    height: 96px;
    width: auto;
    flex-shrink: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
}

.brand-title {
    font-size: clamp(1.7rem, 2.4vw + 0.8rem, 2.45rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.2;
    max-width: 18ch;
}

.brand-sub {
    font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.08rem);
    color: var(--muted);
    font-weight: 400;
    line-height: 1.55;
    max-width: 36rem;
}

.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 240px;
    padding: 0.78rem 2.4rem;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    text-decoration: none;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

.login-btn:hover,
.login-btn:focus {
    background: var(--orange-mid);
    box-shadow: 0 6px 22px rgba(13, 148, 136, 0.35);
    transform: translateY(-1px);
    outline: none;
    color: #fff;
}

.login-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

.login-hint {
    font-size: 0.875rem;
    color: var(--teal);
    text-align: center;
}

@media (max-width: 700px) {
    .brand-header img {
        height: 72px;
    }

    .brand-title {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .landing-page {
        padding: 1.5rem 1rem 2rem;
        padding-top: max(2rem, env(safe-area-inset-top));
    }

    .login-btn {
        width: 100%;
        font-size: 1rem;
    }

    body.notifyfbc-landing-page::before {
        background:
            radial-gradient(circle at 92% 5%, rgba(249, 115, 22, 0.18) 0 180px, transparent 181px),
            radial-gradient(circle at 5% 95%, rgba(13, 148, 136, 0.14) 0 160px, transparent 161px),
            radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.07) 0 320px, transparent 321px);
    }
}

.sso-loading {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: rgba(247, 242, 236, 0.92);
    backdrop-filter: blur(4px);
}

.sso-loading[hidden] { display: none !important; }

.sso-loading-card {
    text-align: center;
    color: var(--navy);
    font-weight: 600;
}

.sso-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.85rem;
    border: 3px solid rgba(232, 93, 4, 0.2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: sso-spin 0.7s linear infinite;
}

@keyframes sso-spin {
    to { transform: rotate(360deg); }
}
