@font-face {
    font-family: "Sarabun";
    src: url("/fonts/Sarabun-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("/fonts/Sarabun-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("/fonts/Sarabun-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #1448a9;
    --navy: #00266e;
    --steel: #192a3d;
    --white: #ffffff;
    --page-background: #ffffff;
    --ink: #192a3d;
    --muted: #536477;
    --line: rgba(25, 42, 61, 0.14);
    --panel: #ffffff;
    --panel-soft: #f4f7fb;
    --blue-soft: rgba(20, 72, 169, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Sarabun", ui-sans-serif, system-ui, sans-serif;
    background: var(--page-background);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.welcome-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    place-items: center;
    padding: 32px;
}

.hero {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.topbar {
    display: flex;
    width: min(860px, 100%);
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--blue);
    border-radius: 8px;
    margin: 0 auto;
    padding: 0 22px;
    background: var(--white);
    box-shadow: 0 18px 48px rgba(0, 38, 110, 0.08);
}

.brand {
    display: inline-flex;
    width: min(390px, 58vw);
    align-items: center;
}

.brand img {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 3;
    object-fit: contain;
}

.topbar-login {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 0 20px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--blue);
    box-shadow: 0 12px 24px rgba(20, 72, 169, 0.22);
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.topbar-login:hover,
.topbar-login:focus-visible {
    border-color: var(--navy);
    background: var(--navy);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 900px) {
    .welcome-shell {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .welcome-shell {
        padding: 18px;
    }

    .topbar {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 18px 14px;
    }

    .brand {
        width: min(280px, 72vw);
        justify-content: center;
    }

    .topbar-login {
        min-height: 38px;
        min-width: 118px;
        padding: 0 18px;
        font-size: 0.88rem;
    }
}
