* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #07090d;
    color: #f5f7fb;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================
   Page
========================= */

.page {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 10%,
            #17213a 0,
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 80%,
            #16110a 0,
            transparent 35%
        );
}


/* =========================
   Home Animated Background
   เฉพาะ index.html
========================= */

.home-page {
    overflow: hidden;
}

.home-page .background-gif {
    position: fixed;

    /* ขยายเกินขอบเพื่อไม่ให้เห็นขอบจาก blur */
    inset: -30px;

    background-image: url("/static/cat-background.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(18px);
    transform: scale(1.08);

    z-index: 0;
}

.home-page .background-overlay {
    position: fixed;
    inset: 0;

    /* ทำให้ GIF มืดลง อ่านข้อความง่าย */
    background: rgba(5, 7, 12, 0.62);

    z-index: 1;
}

.home-page .page {
    position: relative;
    z-index: 2;

    background: transparent;
}


/* =========================
   Verify Card
========================= */

.card {
    position: relative;
    z-index: 5;

    width: min(560px, 100%);

    padding: 38px;

    border: 1px solid #303746;
    border-radius: 20px;

    background: rgba(15, 18, 25, 0.94);

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.45);

    text-align: center;
}


/* =========================
   Logo
========================= */

.logo-image {
    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 24px;

    display: block;

    margin: 0 auto 18px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.35);
}


/* =========================
   Header
========================= */

.eyebrow {
    color: #6caeff;

    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.title {
    font-size: 30px;

    margin: 8px 0 10px;
}

.muted {
    color: #aab2c2;

    line-height: 1.65;
}


/* =========================
   Buttons
========================= */

.button {
    display: block;

    width: 100%;

    padding: 14px 18px;

    margin-top: 24px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #5865f2,
            #765cff
        );

    color: white;

    font-size: 16px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.button.gold {
    background:
        linear-gradient(
            90deg,
            #e5a817,
            #ffd45c
        );

    color: #151006;
}


/* =========================
   Form
========================= */

.field {
    text-align: left;

    margin-top: 24px;
}

.field label {
    display: block;

    font-weight: 700;

    margin-bottom: 9px;
}

.field input {
    width: 100%;

    padding: 14px;

    border: 1px solid #3b4352;
    border-radius: 11px;

    background: #0c0f15;

    color: #ffffff;

    font-size: 16px;

    outline: none;
}

.field input:focus {
    border-color: #6caeff;
}


/* =========================
   Account Information
========================= */

.account {
    margin: 22px 0;

    padding: 14px;

    border: 1px solid #303746;
    border-radius: 12px;

    background: #0c0f15;

    text-align: left;
}


/* =========================
   Success
========================= */

.success {
    font-size: 60px;
}

.success-title {
    color: #57f287;
}


/* =========================
   Error
========================= */

.error {
    margin-top: 14px;

    padding: 11px;

    border-radius: 10px;

    background: #35181d;

    color: #ff929d;
}


/* =========================
   Footer / Note
========================= */

.note {
    font-size: 13px;

    color: #7f899b;

    margin-top: 18px;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

    .page {
        padding: 16px;
    }

    .card {
        padding: 28px 20px;
    }

    .logo-image {
        width: 85px;
        height: 85px;
    }

    .title {
        font-size: 26px;
    }
}