:root {
    --bg: #0b1220;
    --card: #0f1a30cc;
    --line: #ffffff1a;
    --text: #e9f3ff;
    --muted: #b7c7dd;
    --green: #22c55e;
    --green2: #16a34a;
    --danger: #ef4444;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: "Noto Sans Thai", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 20% 10%, #16a34a55, transparent 60%),
        radial-gradient(1000px 600px at 80% 30%, #22c55e33, transparent 55%),
        radial-gradient(900px 500px at 50% 90%, #60a5fa22, transparent 60%),
        linear-gradient(180deg, #071022 0%, #0b1220 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wrap {
    width: min(1024px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.hero,
.card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #0f1a30cc, #0b1428cc);
    box-shadow: 0 20px 60px #00000055;
    backdrop-filter: blur(10px);
}

.hero {
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(600px 300px at 30% 20%, #22c55e22, transparent 60%),
        radial-gradient(500px 260px at 70% 60%, #60a5fa1f, transparent 60%);
    pointer-events: none;
}

.hero>* {
    position: relative;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), #60a5fa);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #082014;
    box-shadow: 0 10px 30px #22c55e22;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.brand p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.hero h2 {
    margin: 18px 0 8px;
    font-size: 28px;
}

.hero .sub {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #d7e7ff;
    background: #0b1428aa;
    font-size: 13px;
}

.stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #0b1428aa;
}

.stat .k {
    color: var(--muted);
    font-size: 12px;
}

.stat .v {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card .hint {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.field {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 13px;
    color: #d7e7ff;
    margin-bottom: 6px;
}

.input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #071024aa;
    color: var(--text);
    outline: none;
    transition: .15s ease;
}

.input:focus {
    border-color: #22c55e66;
    box-shadow: 0 0 0 4px #22c55e18;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 6px 0 14px;
}

.row a {
    color: #bfe7c9;
    text-decoration: none;
    font-size: 13px;
}

.row a:hover {
    text-decoration: underline;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #22c55e55;
    background: linear-gradient(180deg, var(--green), var(--green2));
    color: #062012;
    font-weight: 800;
    cursor: pointer;
    transition: .15s ease;
}

.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0px);
}

.btn.secondary {
    margin-top: 10px;
    background: #071024aa;
    color: #d7e7ff;
    border: 1px solid var(--line);
    font-weight: 700;
}

.err {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ef444455;
    background: #ef44441a;
    color: #ffd6d6;
    font-size: 13px;
    line-height: 1.5;
}

footer {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

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

    .stats {
        grid-template-columns: 1fr;
    }
}