/* main.css - Дополненный файл стилей для главной страницы */

/* Основные стили */
:root {
    --bg: #19273f;
    --card: #ffffff;
    --accent: #3399ff;
    --text: #19273f;
    --light-bg: #ffffff6b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 15px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    margin: 0;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}


/* ===== AUTH DARK UI ===== */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* CARD */

.auth-card {
    background: #0f1724;
    padding: 40px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;

    /* мягкая стеклянность */
    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.03);

    transition: var(--transition);
}

/* TITLE */

.auth-title {
    margin-bottom: 25px;
    text-align: center;
    color: #ffffff;
}

/* INPUT GROUP */

.input-group {
    position: relative;
    margin-bottom: 22px;
}

/* INPUT */

input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #0f1724 inset !important;
    -webkit-text-fill-color: #fff !important;
}

.input-group input {
    width: 100%;
    padding: 14px 12px;
    border-radius: var(--radius-sm);

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);

    color: #fff;
    outline: none;

    transition: var(--transition);

    margin-bottom: 10px;
}

/* HOVER + FOCUS */

.input-group input:hover {
    border-color: rgba(255,255,255,0.2);
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* LABEL */

.input-group label {
    position: absolute;
    left: 12px;
    top: 14px;

    color: rgba(255,255,255,0.5);
    font-size: 14px;

    pointer-events: none;
    transition: var(--transition);

    background: #0f1724;
    padding: 0 6px;
}

/* FLOAT LABEL */

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    font-size: 12px;
    color: var(--accent);
}

/* FOCUS LINE */

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: var(--transition);
}

.input-group input:focus ~ .focus-border {
    width: 100%;
}

/* TEXT UNDER BAR */

#strengthText {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    display: block;
}

/* BUTTON */

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3399ff, #5ab0ff);
    border: none;
    color: white;

    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;

    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51,153,255,0.4);
}

/* CHECKBOX */

.checkbox-group {
    margin: 10px 0 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* кастомный чекбокс */

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;

    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;

    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

/* hover */

.checkbox-group input[type="checkbox"]:hover {
    border-color: var(--accent);
}

/* checked */

.checkbox-group input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

/* галочка */

.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;

    left: 4px;
    top: 1px;

    width: 4px;
    height: 8px;

    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ВВОД КОДА */
/* скрытие */
.hidden {
    display: none;
}

/* плавная смена */
.auth-card, .verify-block {
    transition: all 0.4s ease;
}

/* код */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.code-inputs input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 22px;
    border-radius: 8px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;

    transition: 0.2s;
}

.code-inputs input:focus {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ошибка */
.code-error {
    border-color: #ff4d4f !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* resend */
.resend {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.resend button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
}

.container-verify-block {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.verify-block {
    background: #0f1724;
    padding: 2rem;
    border-radius: 15px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timer {
    display: inline-block;
    transition: all 0.25s ease;
}

.timer-change {
    transform: translateY(-5px);
    opacity: 0.5;
}

.fade {
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.25s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.success-text {
    color: #16a34a;
    font-weight: 500;
}

.code-inputs input {
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
}

.input-success {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.container-captcha {
    display:none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}



.auth-menu-container {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.auth-menu-btn {
    display: inline-block;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    padding: 0px 12px;
    transition: all 0.2s ease;
}

.auth-menu-btn:hover {
    color: #54acff;
}