/* =========================
   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
   ========================= */
*, *::before, *::after { 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; }

.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;
}

/* На экране верификации карточка сжимается под контент */
.login-card.is-verification {
    min-height: 0;
}

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: #ff4b00;
    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; }

/* =========================
   ВЕС ШРИФТОВ
   ========================= */
.login-btn,
.steam-btn { letter-spacing: 0.01em; }

.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 36px;
    font-size: 22px;
    line-height: 28px;
    text-align: center;
    font-weight: 700;
}

.verification-content {
    margin-top: 0;
}

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

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

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

.verify-form {
    display: block;
}

/* Поле ввода ниже, как на эталоне */
.verification-input {
    width: 100%;
    height: 40px;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid #ff5b2e;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    padding: 0 12px;
    margin: 0 0 16px;
    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: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 2px;
}

/* RESEND — ровный тёмно-серый текст, как на эталоне */
.resend-btn {
    width: auto;
    height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #565656;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
}

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

.resend-btn:disabled {
    cursor: default;
    opacity: 1;
    color: #565656;
}

/* LOG IN — чёткий оранжевый, резкие углы, как на эталоне */
.verification-login {
    width: auto;
    height: 36px;
    margin-top: 0;
    padding: 0 26px;
    border-radius: 4px;
    background: #ff4b00;
    box-shadow: none;          /* убираем внутреннюю тень — цвет становится «чистым» */
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.verification-login:hover:not(:disabled) {
    background: #ff4b00;
}

/* Серая, пока код не введён */
.verification-login:disabled {
    background: #333333;
    color: #7d7d7d;
    box-shadow: none;
    cursor: default;
}

.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;
    font-size: 12px;
    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;
}

/* =========================
   MOBILE
   ========================= */
@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; }
    .verification-actions { gap: 24px; }
}