/* ========== ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦ ВХОДА И ЛК ========== */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 480px;
    max-width: 100%;
    background: #2d2d2d;
    padding: 32px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 0 0 0 1px #666;
    min-height: 100vh;
}

/* ── Логотип ── */
.auth-logo {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
}
.auth-logo__big {
    display: block;
    font-size: clamp(24px, 7.5vw, 38px);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

.auth-tagline {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
}

.auth-prompt {
    font-size: 15px;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
}

/* ── Поле ввода ── */
.auth-field {
    display: flex;
    flex-direction: column;
    border: 1px solid #fff;
    background: #3a3a3a;
    cursor: text;
    position: relative;
}
.auth-field__label {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px 0;
    line-height: 1;
    pointer-events: none;
}
.auth-field__input {
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
    padding: 4px 14px 10px;
    width: 100%;
    caret-color: #fff;
}
.auth-field__input::placeholder {
    color: rgba(255,255,255,0.25);
    font-weight: 400;
}
.auth-field__input[type="number"]::-webkit-outer-spin-button,
.auth-field__input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.auth-field__input[type="number"] { -moz-appearance: textfield; }

.auth-field__sub {
    font-size: 12px;
    color: #aaa;
    padding: 0 14px 8px;
    line-height: 1.3;
}
.auth-field--focused { border-color: #fff; background: #3f3f3f; }

/* ── Комментарии под полями — z-index fix ── */
.auth-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 0;
}
.auth-field-comment {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    padding: 0 2px;
    font-weight: 400;
}

/* ── Кнопки ── */
.btn-auth {
    width: 100%;
    padding: 16px;
    background: #2d2d2d;
    border: 2px solid #fff;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.02em;
    transition: background 0.1s;
    text-decoration: none;
    display: block;
}
.btn-auth:hover { background: #3a3a3a; }
.btn-auth:active { background: #4a4a4a; }

.btn-auth--secondary {
    border-color: #555;
    color: #aaa;
    font-size: 15px;
    padding: 12px;
}
.btn-auth--secondary:hover { border-color: #fff; color: #fff; }

/* ── Подсказка ── */
.auth-hint {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}
.auth-hint a { color: #aaa; text-decoration: underline; }

/* ── 4 ячейки кода ── */
.code-fields { display: flex; gap: 10px; }
.code-cell {
    flex: 1;
    border: 1px solid #fff;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    cursor: text;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.code-cell--active { background: #3f3f3f; }
.code-cell--filled { background: #4a4a4a; }

/* ── ВК блок ── */
.vk-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: auto;
    padding-top: 70px;
}
.vk-logo {
    width: 70px;
    height: 70px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.vk-label {
    font-size: 15px;
    color: #fff;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    line-height: 1.4;
    font-weight: 400;
}

/* ── Страница "первый раз" ── */
.auth-greeting__title {
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    text-align: center;
}
.auth-greeting__skip {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: center;
    display: block;
    font-weight: 400;
}
.auth-greeting__skip:hover { color: rgba(255,255,255,0.6); }

.auth-final-text {
    font-size: 16px;
    color: #ccc;
    line-height: 1.5;
    text-align: center;
    font-weight: 400;
}

/* ── Скролл вверх ── */
.scroll-up {
    font-size: 40px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    padding-top: 8px;
}

/* ── Ссылка профиль ── */
.profile-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
