/* Landing Page — TCG Freight Customer Portal */
/* Direction A: split layout, dark navy, US map motif */

:root {
    --tcg-navy: #0a1628;
    --tcg-navy-2: #13243d;
    --tcg-text: #e6edf7;
    --tcg-text-dim: rgba(220, 232, 250, 0.72);
    --tcg-text-faint: rgba(220, 232, 250, 0.55);
    --tcg-border: rgba(180, 210, 255, 0.12);
    --tcg-border-light: rgba(180, 210, 255, 0.08);
    --tcg-yellow: #f5d028;
    --tcg-mono: ui-monospace, 'JetBrains Mono', Menlo, monospace;
}

html, body {
    margin: 0;
    padding: 0;
    background: #060e1c;
    color: var(--tcg-text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
}

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

.landing-page {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(120% 90% at 70% 30%, #13243d 0%, #0a1628 55%, #060e1c 100%);
    overflow: hidden;
}

/* Map background layer */
.landing-map-bg {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    pointer-events: none;
}

.landing-map-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Subtle scanline / texture — original uses transparent→25% at bottom */
.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0) 0%, rgba(10, 22, 40, 0.25) 100%);
    pointer-events: none;
}

/* Navigation bar */
.landing-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 28px 80px;
    border-bottom: 1px solid var(--tcg-border-light);
}

.landing-nav .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.landing-nav .brand img {
    height: 32px;
    filter: brightness(1.15);
}

.landing-nav .brand-label {
    font-size: 18px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    font-family: var(--tcg-mono);
    padding-left: 14px;
    margin-left: 2px;
    border-left: 1px solid rgba(180, 210, 255, 0.18);
    line-height: 1;
    padding-top: 6px;
    padding-bottom: 0;
}

/* Content grid */
.landing-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 120px 80px 0;
    align-items: start;
}

/* Left: hero copy */
.landing-hero {
    padding-top: 40px;
}

.landing-hero h1 {
    font-size: 68px;
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0 0 28px;
    color: #f4f7fc;
    white-space: pre-line;
    text-wrap: balance;
}

.hero-logo-inline {
    height: 1.0em;
    width: auto;
    vertical-align: -0.08em;
    margin: 0 0.15em 0 0.1em;
    object-fit: contain;
}

.landing-hero p {
    font-size: 19px;
    line-height: 1.55;
    color: var(--tcg-text-dim);
    max-width: 540px;
    margin: 0 0 44px;
    text-wrap: pretty;
}

/* Right: portal card */
.landing-card-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.portal-card {
    width: 440px;
    background: linear-gradient(180deg, rgba(20, 36, 62, 0.85) 0%, rgba(14, 26, 46, 0.92) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--tcg-border);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portal-card .card-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f5d028;
    margin-bottom: 10px;
    font-family: var(--tcg-mono);
}

.portal-card h2 {
    margin: 0 0 32px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #f4f7fc;
}

.portal-card .form-label-tcg {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(220, 232, 250, 0.6);
    margin-bottom: 10px;
    font-family: var(--tcg-mono);
}

.portal-card .form-input-tcg {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(180, 210, 255, 0.18);
    border-radius: 8px;
    color: #f4f7fc;
    font-size: 15px;
    font-family: var(--tcg-mono);
    letter-spacing: 0.04em;
    outline: none;
    transition: border-color 0.2s;
}

.portal-card .form-input-tcg:focus {
    border-color: var(--tcg-yellow);
    box-shadow: 0 0 0 2px rgba(245, 208, 40, 0.15);
}

.portal-card .form-input-tcg::placeholder {
    color: rgba(220, 232, 250, 0.35);
}

.portal-card .form-check-tcg {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    margin-top: 16px;
}

.portal-card .form-check-tcg input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tcg-yellow);
    cursor: pointer;
}

.portal-card .form-check-tcg label {
    font-size: 13px;
    color: var(--tcg-text-dim);
    cursor: pointer;
}

.portal-card .btn-continue {
    width: 100%;
    padding: 14px;
    background: var(--tcg-yellow);
    border: none;
    border-radius: 8px;
    color: var(--tcg-navy);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s, transform 0.1s;
}

.portal-card .btn-continue:hover {
    background: #f7d93e;
    transform: translateY(-1px);
}

.portal-card .btn-continue:active {
    transform: translateY(0);
}

.portal-card .card-footer-divider {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(180, 210, 255, 0.1);
    font-size: 13px;
    color: rgba(220, 232, 250, 0.6);
    text-align: center;
}

.portal-card .card-footer-divider a {
    color: #f4f7fc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-card .validation-error {
    color: #f87171;
    font-size: 12px;
    margin-top: 6px;
}

.portal-card .alert-banner {
    background: rgba(245, 208, 40, 0.12);
    border: 1px solid rgba(245, 208, 40, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--tcg-yellow);
    margin-bottom: 20px;
}

/* Microsoft sign-in button: light grey surface with dark text, blue accent on hover. */
.portal-card .btn-ms-signin {
    width: 100%;
    padding: 12px 14px;
    background: #e8eaed;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.portal-card .btn-ms-signin:hover,
.portal-card .btn-ms-signin:focus-visible {
    background: #e8eaed;
    border-color: #2f7dd1;
    box-shadow: 0 0 0 1px #2f7dd1;
    outline: none;
    transform: translateY(-1px);
}

.portal-card .btn-ms-signin:active {
    transform: translateY(0);
}

/* "or use a sign-in link" separator between Microsoft button and email form */
.portal-card .auth-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 22px;
    color: rgba(220, 232, 250, 0.5);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-card .auth-divider::before,
.portal-card .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(180, 210, 255, 0.12);
}

.portal-card .auth-divider span {
    padding: 0 12px;
}

/* Collapsible "use a sign-in link instead" section.
   Uses native <details>/<summary>; clicking the summary toggles the email form. */
.portal-card .auth-link-toggle {
    margin-top: 18px;
    border-top: 1px solid rgba(180, 210, 255, 0.12);
    padding-top: 14px;
}

.portal-card .auth-link-toggle > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    color: rgba(220, 232, 250, 0.7);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    transition: color 0.15s;
}

/* Hide default disclosure triangle (Chrome/Safari/Firefox). */
.portal-card .auth-link-toggle > summary::-webkit-details-marker {
    display: none;
}
.portal-card .auth-link-toggle > summary::marker {
    content: "";
}

.portal-card .auth-link-toggle > summary:hover,
.portal-card .auth-link-toggle > summary:focus-visible {
    color: var(--tcg-yellow);
    outline: none;
}

.portal-card .auth-link-toggle-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.portal-card .auth-link-toggle[open] > summary > .auth-link-toggle-chevron {
    transform: rotate(180deg);
}

.portal-card .auth-link-toggle[open] > summary {
    margin-bottom: 12px;
}

/* Footer strip */
.landing-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 22px 80px;
    border-top: 1px solid var(--tcg-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(220, 232, 250, 0.45);
    font-family: var(--tcg-mono);
    letter-spacing: 0.06em;
}

.landing-footer .footer-left,
.landing-footer .footer-right {
    display: flex;
    gap: 32px;
}

.landing-footer .footer-right {
    gap: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .landing-content {
        grid-template-columns: 1fr;
        padding: 60px 40px 0;
        gap: 40px;
    }

    .landing-hero h1 {
        font-size: 48px;
    }

    .landing-card-wrapper {
        justify-content: center;
    }

    .portal-card {
        width: 100%;
        max-width: 440px;
    }

    .landing-nav {
        padding: 20px 40px;
    }

    .landing-footer {
        padding: 18px 40px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .landing-content {
        padding: 40px 24px 0;
    }

    .landing-hero h1 {
        font-size: 36px;
    }

    .landing-hero p {
        font-size: 16px;
    }

    .landing-nav {
        padding: 16px 24px;
    }

    .portal-card {
        padding: 28px;
    }

    .landing-footer {
        padding: 16px 24px;
        font-size: 10px;
    }
}
