/* ---------------------------------------------------------------------------
   GovieRates sign-in page.

   Self-contained: this page deliberately loads no Bootstrap, AdminLTE or
   jQuery. It is the only consumer of _LandingPageLayout, nothing here depends
   on a framework, and keeping them out means no cascade surprises and a much
   lighter first paint on the one page every user sees before anything else.
   --------------------------------------------------------------------------- */

:root {
    --gr-navy: #0C2340;        /* left panel + footer */
    --gr-navy-deep: #081A30;   /* footer, a shade below the panel */
    --gr-blue: #2AAADF;        /* brand mark blue, used for the accent rule */
    --gr-intuit-blue: #0077C5; /* sign-in button */
    --gr-intuit-blue-hover: #00649F;
    --gr-canvas: #F1F5F9;      /* right panel */
    --gr-ink: #0C2340;
    --gr-ink-muted: #5A6B7F;
    --gr-on-navy-muted: #A9BDD4;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
}

body.gr-signin {
    margin: 0;
    /* System stack: renders as Segoe UI on Windows, which is very close to the
       intended geometric sans, with no webfont request on the login path. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    color: var(--gr-ink);
    background: var(--gr-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gr-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- The split ---------------------------------------------------------- */

.gr-split {
    flex: 1 0 auto;
    display: flex;
    align-items: stretch;
}

.gr-pitch {
    flex: 0 0 52%;
    background: var(--gr-navy);
    display: flex;
    align-items: center;
    padding: 72px clamp(32px, 6vw, 112px);
}

.gr-pitch-inner { max-width: 620px; }

/* Short rule above the headline. */
.gr-rule {
    width: 64px;
    height: 5px;
    border-radius: 3px;
    background: var(--gr-blue);
    margin-bottom: 36px;
}

.gr-pitch h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.gr-pitch p {
    margin: 28px 0 0;
    color: var(--gr-on-navy-muted);
    font-size: clamp(1rem, 1.15vw, 1.19rem);
    line-height: 1.6;
    max-width: 560px;
}

/* --- The card ----------------------------------------------------------- */

.gr-auth {
    flex: 1 1 auto;
    background: var(--gr-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 32px;
}

.gr-card {
    width: 100%;
    max-width: 496px;
    background: #fff;
    border-radius: 18px;
    padding: 48px 44px 40px;
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04),
                0 12px 32px rgba(12, 35, 64, 0.08);
}

.gr-logo {
    display: block;
    width: 190px;
    height: auto;          /* overrides the width/height attrs, which are there to reserve space */
    margin: 0 auto 28px;
}

.gr-card h2 {
    margin: 0 0 12px;
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--gr-ink);
}

.gr-card .gr-lede {
    margin: 0 0 28px;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--gr-ink-muted);
}

.gr-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 20px;
    border-radius: 9px;
    background: var(--gr-intuit-blue);
    color: #fff;
    font-size: 1.06rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.gr-signin-btn:hover,
.gr-signin-btn:focus {
    background: var(--gr-intuit-blue-hover);
    color: #fff;
    text-decoration: none;
}

.gr-signin-btn:active { transform: translateY(1px); }

/* Visible keyboard focus — this is the only interactive control on the page. */
.gr-signin-btn:focus-visible {
    outline: 3px solid rgba(42, 170, 223, 0.55);
    outline-offset: 2px;
}

.gr-signin-btn svg { flex: 0 0 auto; }

.gr-reassure {
    margin: 24px 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--gr-ink-muted);
}

/* --- Footer ------------------------------------------------------------- */

.gr-footer {
    flex: 0 0 auto;
    background: var(--gr-navy-deep);
    color: var(--gr-on-navy-muted);
    font-size: 0.9rem;
    padding: 22px clamp(24px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.gr-footer a {
    color: var(--gr-on-navy-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gr-footer a:hover { color: #fff; }

.gr-footer-links {
    display: flex;
    gap: clamp(16px, 3vw, 36px);
}

/* --- Narrow screens ------------------------------------------------------ */

@media (max-width: 900px) {
    .gr-split { flex-direction: column; }

    .gr-pitch {
        flex: 0 0 auto;
        padding: 56px 32px 48px;
    }

    .gr-rule { margin-bottom: 24px; }

    .gr-pitch h1 { font-size: 2rem; }

    .gr-auth { padding: 48px 24px 56px; }

    .gr-footer { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .gr-card { padding: 36px 24px 32px; border-radius: 14px; }
    .gr-logo { width: 140px; }
    .gr-card h2 { font-size: 1.7rem; }
}
