:root{
    --gh-red:#E2231A;
    --gh-red-dark:#B81810;
    --gh-red-soft:#FF7A63;
    --gh-yellow:#FFC72C;
    --gh-yellow-dark:#E8A800;
    --gh-yellow-soft:#FFE49C;
    --cream:#FFF7EA;
    --card:#FFFDF8;
    --ink:#4A2F1C;
    --ink-soft:#9A7C5C;
    --success:#3FA66B;
    --danger:#D6473B;
    --radius-lg:28px;
    --radius-md:20px;
    --radius-sm:16px;
    --radius-pill:999px;
}

*{ box-sizing:border-box; }

html, body{
    margin:0;
    padding:0;
    min-height:100vh;
    background-color:var(--cream);
    background-image:
        radial-gradient(circle at 15% 8%, rgba(226,35,26,0.14), transparent 40%),
        radial-gradient(circle at 92% 18%, rgba(255,199,44,0.28), transparent 38%),
        radial-gradient(circle at 6% 78%, rgba(255,199,44,0.22), transparent 35%),
        radial-gradient(circle at 96% 92%, rgba(226,35,26,0.12), transparent 38%),
        radial-gradient(circle, rgba(226,35,26,0.10) 2.5px, transparent 2.5px);
    background-size:auto, auto, auto, auto, 26px 26px;
    font-family:'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    color:var(--ink);
    line-height:1.25;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-wrap{
    max-width:420px;
    width:100%;
    margin:0 auto;
    padding:44px 24px;
}

.topband{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-bottom:22px;
    flex-direction:column;
    text-align:center;
}

.topband .bag img{
    height:48px;
    width:auto;
    max-width:180px;
    object-fit:contain;
    display:block;
    margin-bottom:6px;
}

.eyebrow{
    font-size:12.5px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--gh-red-dark);
    font-weight:700;
}

h1.masthead{
    font-family:'Baloo 2', sans-serif;
    font-size:clamp(26px, 4vw, 36px);
    font-weight:800;
    margin:2px 0 6px 0;
    color:var(--gh-red);
    letter-spacing:-0.5px;
}

p.sub{
    color:var(--ink-soft);
    font-size:14px;
    font-weight:500;
    margin:0;
}

/* ---------- ticket-style panel ---------- */
.panel{
    background:var(--card);
    border:2.5px solid #FFE1B8;
    border-radius:var(--radius-lg);
    padding:8px;
    position:relative;
    box-shadow:0 20px 45px -22px rgba(226,35,26,0.35);
}

.panel-top{
    background:linear-gradient(120deg, var(--gh-red), var(--gh-red-soft));
    border-radius:calc(var(--radius-lg) - 6px) calc(var(--radius-lg) - 6px) 0 0;
    padding:16px 26px;
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:center;
    position:relative;
    overflow:hidden;
}

.panel-top::after{
    content:"";
    position:absolute;
    bottom:-11px;
    left:0;
    right:0;
    height:22px;
    background-image:radial-gradient(circle at center, var(--cream) 10px, transparent 10.5px);
    background-size:26px 22px;
    background-position:0 -11px;
    background-repeat:repeat-x;
}

.panel-top .star{ font-size:18px; }

.panel-top .ptxt{
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
    font-size:15px;
    color:#fff;
    letter-spacing:0.3px;
}

.panel-body{
    padding:28px 28px 24px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-bottom:16px;
}

label{
    font-size:13px;
    font-weight:700;
    color:var(--gh-red-dark);
    display:flex;
    align-items:center;
    gap:5px;
}

.req{ color:var(--gh-yellow-dark); }

.input-icon{ position:relative; }

.input-icon svg{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    width:16px;
    height:16px;
    fill:var(--ink-soft);
    pointer-events:none;
}

input[type=text], input[type=password]{
    width:100%;
    background:#FFFBF3;
    border:2px solid #FFE1B8;
    color:var(--ink);
    font-family:'Quicksand', sans-serif;
    font-weight:600;
    font-size:14.5px;
    padding:12px 20px 12px 44px;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease;
    border-radius:var(--radius-pill);
    appearance:none;
    -webkit-appearance:none;
}

input[type=text]::placeholder, input[type=password]::placeholder{ color:#C9AE8C; font-weight:500; }

input[type=text]:hover, input[type=password]:hover{ border-color:var(--gh-yellow); }

input[type=text]:focus, input[type=password]:focus{
    border-color:var(--gh-red);
    box-shadow:0 0 0 4px rgba(255,199,44,0.35);
}

.options-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:6px 0 22px;
    font-size:12.5px;
}

.options-row label{
    color:var(--ink-soft);
    font-weight:600;
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.options-row a{
    color:var(--gh-red-dark);
    font-weight:700;
    text-decoration:none;
}

.options-row a:hover{ text-decoration:underline; }

.btn-login{
    appearance:none;
    border:none;
    cursor:pointer;
    width:100%;
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
    font-size:15px;
    color:#fff;
    background:linear-gradient(135deg, var(--gh-red-soft), var(--gh-red));
    padding:13px 30px;
    border-radius:var(--radius-pill);
    transition:transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease;
    box-shadow:0 10px 22px -8px rgba(226,35,26,0.55);
}

.btn-login:hover{ transform:translateY(-2px) scale(1.02); box-shadow:0 14px 26px -8px rgba(226,35,26,0.65); }
.btn-login:active{ transform:translateY(0) scale(0.98); }

.error-msg{
    background:#FDEDEB;
    border:2px solid #F6C4BD;
    color:#B23A2E;
    font-size:13px;
    font-weight:600;
    padding:11px 16px;
    border-radius:var(--radius-sm);
    margin-bottom:18px;
    text-align:center;
}

.footer-note{
    text-align:center;
    margin-top:22px;
    color:var(--ink-soft);
    font-size:12px;
    font-weight:500;
}

/* ---------- success popup ---------- */
.result-overlay{
    position:fixed;
    inset:0;
    background:rgba(74,47,28,0.55);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
    padding:20px;
}

.result-overlay.show{ display:flex; }

.result-card{
    background:var(--card);
    border-radius:28px;
    border:3px solid var(--gh-yellow);
    max-width:340px;
    width:100%;
    padding:34px 28px 30px;
    text-align:center;
    box-shadow:0 30px 60px -20px rgba(0,0,0,0.4);
    animation:popIn .22s ease;
}

@keyframes popIn{
    from{ transform:scale(.86); opacity:0; }
    to{ transform:scale(1); opacity:1; }
}

.result-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 16px;
    font-size:30px;
}

.result-card.success .result-icon{ background:#EAF8EF; }
.result-card.success .result-icon::before{ content:"\1F389"; }

.result-card h2{
    font-family:'Baloo 2', sans-serif;
    font-size:21px;
    font-weight:700;
    margin:0 0 8px;
    color:var(--ink);
}

.result-card p{
    font-size:14px;
    color:var(--ink-soft);
    font-weight:600;
    margin:0;
    line-height:1.45;
}

.result-spinner{
    width:22px;
    height:22px;
    margin:18px auto 0;
    border-radius:50%;
    border:4px solid #FFE1B8;
    border-top-color:var(--gh-red);
    animation:spin 0.8s linear infinite;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}