/* Shared CSS file for the NESSIE landing / login / registration pages. */
@font-face {
    font-family: "PublicSans";
    src: url("../fonts/PublicSans-Black.woff2") format('woff2');
}

@font-face {
    font-family: "PublicSans-light";
    src: url("../fonts/PublicSans-Light.woff2") format('woff2');
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Inter-Italic.woff2") format("woff2");
}

@font-face {
    font-family: "Inter-bold";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "Inter-bold";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Inter-BoldItalic.woff2") format("woff2");
}

@font-face {
    font-family: "Inter-semibold";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Inter-semibold";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Inter-SemiBoldItalic.woff2") format("woff2");
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PublicSans", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Shared Utilities ── */
.text-white {
    color: whitesmoke;
}

.link-dashed-hover {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease;
}

.link-dashed-hover:hover {
    border-bottom-color: #ffffff;
}

.small-meatball {
    width: 60px;
    height: auto;
}

.side-arrow-icons {
    display: block;
    width: 28px;
    height: auto;
    transition: transform 0.3s ease;
    transform-origin: 50% 50%;
}

.side-arrow-icons:hover {
    transform: scale(1.2);
}

/* ══════════════════════════════════════
    HEADER
══════════════════════════════════════ */
.site-header {
    background: #000;
    padding: 0.75rem 1rem;
}

.site-header a {
    text-decoration: none;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    /* wraps on very narrow screens */
}

.header-logo {
    flex-shrink: 0;
}

.header-title {
    flex: 1 1 200px;
    /* grows, but allows wrapping */
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    color: whitesmoke;
    font-family: "Inter-bold", Inter;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-actions h2 {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1.3rem);
    font-family: "Inter-semibold", Inter;
}

/* ══════════════════════════════════════
    HERO / MAIN CONTENT
══════════════════════════════════════ */
.hero {
    flex: 1;
    /* fills remaining vertical space */
    background-image: url("../img/login_page_background.jpg");
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* 'fixed' breaks on iOS */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.hero-card {
    width: 100%;
    max-width: 45rem;
    text-align: center;
    padding: 0 1rem;
}

.hero-card h1 {
    margin-top: 0;
    font-size: clamp(2.0rem, 5vw, 2.5rem);
    color: whitesmoke;
    font-family: "Inter-bold", Inter;
}

.hero-card p {
    font-size: clamp(1.3rem, 2.2vw, 1.05rem);
    color: whitesmoke;
    line-height: 1.6;
    font-family: "PublicSans-light", sans-serif;
}

.hero-card a {
    font-size: clamp(1.3rem, 2.2vw, 1.05rem);
    color: whitesmoke;
    line-height: 1.6;
    font-family: "Inter-semibold", Inter;
}

/* CTA buttons row */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
}

/* ══════════════════════════════════════
    FOOTER
══════════════════════════════════════ */
.site-footer {
    background: #000;
    padding: 1.25rem 1.5rem 1.75rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    flex: 1 1 220px;
}

.footer-right {
    flex: 1 1 220px;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-left p,
.footer-right p {
    margin: 0.3rem 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: whitesmoke;
    font-family: "Inter", Inter;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;

    /* Matches the height of .small-meatball so the footer text aligns */
    padding-top: 60px;
}

/* On wider screens, push the right column to the end */
@media (min-width: 600px) {
    .footer-right {
        text-align: right;
        align-items: flex-end;
    }
}