/* =========================
   GEIST VARIABLE FONT
   Place your file at ./fonts/Geist-Variable-CrgPqtmy.woff2
========================= */

@font-face {
    font-family: 'Geist';
    src: url('/fonts/Geist-Variable-CrgPqtmy.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Base font for the whole site */
* { box-sizing: border-box; }
html, body, button, input, textarea, select {
    font-family: 'Geist', 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: #050505;
    color: #f1f1f1;
}
body{min-height:100vh}

/* Improve font rendering for UI elements */
html, body, button, input, textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.page{width:100%;min-height:100vh;display:flex;flex-direction:column;align-items:center;padding-top:122px}
.login-card{width:560px;min-height:493px;background:#151515;border-radius:4px;padding:18px 32px 26px}
h1{margin:0 0 36px;text-align:center;font-size:22px;line-height:28px;font-weight:700}
.field label,.password-row label{display:block;margin-bottom:8px;color:#e6e6e6;font-size:14px;font-weight:700}
.field input,.password-wrap input{width:100%;height:40px;border:1px solid #2d2d2d;border-radius:3px;outline:none;background:#202020;color:#eee;padding:0 8px;font-size:16px}
input::placeholder{color:#a9a9a9}.password-row{margin-top:16px;display:flex;align-items:center;justify-content:space-between}
.password-field{margin-top:16px}
.password-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
.password-header label{margin:0;color:#e6e6e6;font-size:13px;font-weight:700;line-height:1.2}
.forgot{border:0;padding:0;margin:0;background:transparent;color:#f2f2f2;font-size:14px;cursor:pointer;line-height:1.2}
.password-wrap{position:relative}.password-wrap input{padding-right:46px}
.eye{position:absolute;right:11px;top:50%;transform:translateY(-50%);width:20px;height:20px;padding:0;border:0;background:transparent;color:#aaa;cursor:pointer;display:flex;align-items:center;justify-content:center}
.eye svg{width:18px;height:18px;display:block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eye .eye-open, .eye .eye-slash { transition: opacity .15s ease; }
.eye .eye-slash { opacity: 0; }
.eye.is-visible .eye-open { opacity: 0; }
.eye.is-visible .eye-slash { opacity: 1; }
.login-btn{width:100%;height:38px;margin-top:22px;border:0;border-radius:6px;background:#ff5b2e;color:#fff;font-size:15px;font-weight:800;cursor:pointer;
letter-spacing:0.06em;padding:8px 14px;box-shadow:0 2px 0 rgba(0,0,0,0.18) inset}
.or{display:flex;align-items:center;gap:17px;margin:27px 0 23px}.or span{flex:1;height:1px;background:#333}.or b{font-size:14px;letter-spacing:0.12em}
.steam-btn{display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:row-reverse;width:220px;height:36px;margin:10px auto;border:0;border-radius:6px;background:#ffffff;color:#111;font-size:14px;font-weight:900;cursor:pointer;letter-spacing:0.06em;padding:6px 16px;box-shadow:0 1px 0 rgba(0,0,0,0.08)}
.steam-icon{width:21px;height:21px;display:block;flex-shrink:0;object-fit:contain;}
.steam-warning{display:none;margin:8px auto 0;color:#ff4d4d;font-size:11px;font-weight:600;letter-spacing:0.02em;text-align:center}
.steam-warning.visible{display:block}
.account-question{margin:27px 0 0;text-align:center;color:#a8a8a8;font-size:13px}
.create-btn{display:block;margin:27px auto 0;border:0;background:transparent;color:#b9b9b9;font-size:14px;font-weight:700;cursor:pointer}
footer{width:560px;display:flex;align-items:center;justify-content:space-between;margin-top:16px}
footer select{width:267px;height:40px;border:1px solid #2d2d2d;border-radius:4px;background:#151515;color:#ddd;padding:0 8px;font-size:16px}
footer nav{display:flex;gap:10px}footer a{color:#b8c8dc;text-decoration:none;font-size:12px}
.notice{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#222;color:#ddd;border:1px solid #333;border-radius:4px;padding:8px 12px;font-size:12px;opacity:0;transition:opacity .2s}
.notice.show{opacity:1}
@media (max-width: 680px) {
    .page { padding: 40px 16px 30px; }
    .login-card, footer { width: min(560px, 100%); }
    .login-card { padding-left: 24px; padding-right: 24px; }
    footer { flex-direction: column; gap: 16px; align-items: stretch; }
    footer select { width: 100%; }
    footer nav { justify-content: center; flex-wrap: wrap; }
}

.login-btn,
.steam-btn {
    letter-spacing:0.01em;
}

h1 {
    font-weight:700;
}

.field label,
.password-header label {
    font-weight:700;
}

.login-btn {
    font-weight:800;
}

.steam-btn {
    font-weight:700;
}

.create-btn {
    font-weight:700;
}

/* =========================
   VERIFICATION
========================= */

.verification-card {
    width: 100%;
}

.verification-card h1 {
    margin: 0 0 38px;
    font-size: 28px;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
}

.verification-content {
    margin-top: 10px;
}

.verification-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.verification-text {
    color: #999;
    line-height: 1.5;
    font-size: 14px;
    margin: 0 0 18px;
}

.verification-text strong {
    color: #ddd;
    font-weight: 600;
}

.verify-form {
    display: block;
}

.verification-input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;

    background: rgba(18, 18, 18, 0.9);
    border: 1px solid #ff5b2e;
    border-radius: 4px;

    color: #fff;
    font-size: 16px;

    padding: 0 14px;
    margin: 0 0 14px;

    outline: none;
}

.verification-input:focus {
    border-color: #ff7b4c;
    box-shadow: 0 0 0 1px rgba(255, 91, 46, 0.4);
}

.verification-input::placeholder {
    color: #777;
}

.verification-actions {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
}

.verification-login {
    width: 100%;
    margin-top: 0;
    height: 32px;
}

.resend-btn {
    width: 100%;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-radius: 4px;
    color: #9e9e9e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0 8px;
}

.resend-btn:hover:not(:disabled) {
    color: #d8d8d8;
}

.resend-btn:disabled {
    cursor: default;
    opacity: 0.45;
}

.success-screen {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background: rgba(70, 180, 100, 0.15);

    color: #65d27b;

    font-size: 34px;
    font-weight: 700;
}

.success-screen p {
    color: #999;
    margin-bottom: 30px;
}

.success-screen .login-btn {
    width: 100%;
}


/* =========================
   NOTICE
========================= */

.notice {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform: translate(-50%, 20px);

    background: #191919;
    border: 1px solid #333;

    color: #fff;

    padding: 13px 20px;
    border-radius: 6px;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    z-index: 1000;
}

.notice.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.notice.success {
    border-color: #477e52;
}