
/* ============================================================
   ЦЕНТРИРОВАННЫЙ КОНТЕЙНЕР
   ============================================================ */
.auth-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 16px;
    animation: authFadeIn 0.6s ease-out;
}


/* ============================================================
   КАРТОЧКА С ФОРМОЙ
   ============================================================ */
.auth-card {
    background: rgba(20, 20, 50, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    width: 100%;               
    max-width: 460px;          
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -40%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(108, 60, 225, 0.08), transparent 65%);
    pointer-events: none;
}


/* ============================================================
   ЗАГОЛОВОК ФОРМЫ
   ============================================================ */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.auth-logo {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
    animation: authFloat 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #b8b8e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}


/* ============================================================
   ФОРМА
   ============================================================ */
.auth-form {
    position: relative;
}

.auth-form .form-group:last-of-type {
    margin-bottom: 22px;
}


/* ============================================================
   ФУТЕР (ссылка на регистрацию/вход)
   ============================================================ */
.auth-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-2);
    font-weight: 600;
    margin-left: 6px;
    transition: color var(--t-base);
}

.auth-footer a:hover {
    color: #c084fc;
}


/* ============================================================
   ИНФО-БЛОК «Orbit Manager — это…»
   ============================================================ */
.info-block {
    position: relative;
    padding: 8px 0;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 12px 16px;
    background: rgba(108, 60, 225, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--t-base);
}

.info-list li:hover {
    background: rgba(108, 60, 225, 0.08);
    border-color: var(--border);
    transform: translateX(3px);
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.5;
}


/* ============================================================
   ВАРИАНТЫ ЛОГИНА (когда занят)
   ============================================================ */
.login-variants {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(108, 60, 225, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: variantsIn 0.3s ease-out;
}

@keyframes variantsIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.variants-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: 999px;
    font-size: 13px;
    color: var(--accent-2);
    cursor: pointer;
    transition: all var(--t-base);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.variant-chip:hover {
    background: rgba(108, 60, 225, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.25);
}


/* ============================================================
   КОД ПОДТВЕРЖДЕНИЯ (4 ЯЧЕЙКИ)
   ============================================================ */
.code-form {
    text-align: center;
}

.code-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.code-cell {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
    transition: all var(--t-base);
    caret-color: var(--accent-2);
    font-family: 'Inter', monospace;
}

.code-cell:focus {
    border-color: var(--accent-1);
    background: rgba(108, 60, 225, 0.06);
    box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.12);
    transform: translateY(-2px);
}

.code-cell.filled {
    border-color: var(--accent-2);
    background: rgba(108, 60, 225, 0.1);
}

.code-cell.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
    animation: shakeX 0.4s ease;
}

.code-cell.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.code-cell:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}


/* ============================================================
   ОШИБКА ПОД КОДОМ
   ============================================================ */
.code-error {
    text-align: center;
    margin-bottom: 10px;
    min-height: 20px;
}


/* ============================================================
   СЧЁТЧИК ПОПЫТОК
   ============================================================ */
.attempts-info {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-align: center;
}

.attempts-info b,
.attempts-info span {
    color: var(--text-muted);
    font-weight: 600;
}


/* ============================================================
   КНОПКА «ОТПРАВИТЬ ЗАНОВО»
   ============================================================ */
.resend-btn {
    margin-bottom: 14px;
    position: relative;
}

.resend-btn:disabled {
    color: var(--text-dim);
    border-color: var(--border-light);
}

#resendTimer {
    color: var(--text-muted);
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   ИНСТРУКЦИЯ ПОД КНОПКОЙ
   ============================================================ */
.code-instruction {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(108, 60, 225, 0.04);
    border-radius: var(--radius);
    text-align: left;
}

.code-instruction a {
    color: var(--accent-2);
    font-weight: 600;
}

.code-instruction a:hover {
    text-decoration: underline;
}


/* ============================================================
   БЛОКИРОВКА (после N неудачных попыток)
   ============================================================ */
.blocked-notice {
    text-align: center;
    padding: 24px 8px;
    animation: authFadeIn 0.5s ease-out;
}

.blocked-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
    display: inline-block;
    animation: authFloat 2.5s ease-in-out infinite;
}

.blocked-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.blocked-text b {
    color: var(--danger);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}


/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 20px 0;
        max-width: 480px;
    }

    .info-block {
        order: 2;
    }

    .auth-card {
        order: 1;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .auth-logo {
        font-size: 40px;
    }

    .auth-title {
        font-size: 19px;
    }

    .code-inputs {
        gap: 8px;
    }

    .code-cell {
        width: 48px;
        height: 56px;
        font-size: 22px;
    }

    .info-list li {
        padding: 10px 12px;
        font-size: 13px;
    }
}