:root {
    --navy: #13243a;
    --blue: #2364aa;
    --bg: #f2f5fa;
    --text: #172337;
    --muted: #68768b;
    --line: #e0e7f0
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef4fc, #f8faff);
    font-family: Tahoma, "Segoe UI", sans-serif;
    color: var(--text)
}

.card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 18px 50px rgba(25, 48, 80, .10)
}

.wide {
    width: 100%;
    max-width: 1000px
}

.brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--blue)
}

h1 {
    margin: 10px 0 8px;
    font-size: 28px
}

h2 {
    margin: 8px 0;
    font-size: 22px
}

.muted {
    color: var(--muted);
    line-height: 1.6
}

.warning {
    padding: 12px;
    background: #fff4db;
    border-radius: 8px;
    color: #765400;
    font-size: 14px;
    line-height: 1.6
}

.error {
    padding: 12px;
    background: #fff0f0;
    color: #a32222;
    border-radius: 8px
}

.success {
    padding: 12px;
    background: #eaf8ef;
    color: #176b35;
    border-radius: 8px
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

label {
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px
}

input {
    width: 100%;
    padding: 13px;
    border: 1px solid #cfd9e6;
    border-radius: 9px;
    font: inherit
}

input:focus {
    outline: 2px solid #a8cdf9;
    border-color: var(--blue)
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    padding: 13px 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-top: 12px
}

button:hover,
.button-link:hover {
    filter: brightness(.94)
}

button.secondary {
    background: #e8eef6;
    color: var(--navy);
    margin: 0
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px
}

.topbar h1 {
    margin-bottom: 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px
}

.menu {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(25, 48, 80, .06);
    transition: transform .15s, border-color .15s
}

.menu:hover {
    transform: translateY(-3px);
    border-color: #91b8e8
}

.menu p {
    color: var(--muted)
}

.number {
    display: inline-block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px
}

.go {
    display: block;
    color: var(--blue);
    font-weight: 700;
    margin-top: 24px
}

.note {
    margin-top: 22px;
    font-size: 13px
}

@media(max-width:620px) {
    .grid {
        grid-template-columns: 1fr
    }

    .card {
        padding: 24px
    }

    .topbar {
        align-items: flex-start
    }

    .topbar h1 {
        font-size: 23px
    }
}
/* กำหนดตำแหน่งโลโก้ */
.card {
    position: relative;
}

.login-logo {
    position: absolute;
    top: 25px;
    right: 25px;

    width: 110px;
    height: 110px;
    object-fit: contain;
}