/* ===== ПЕРЕМЕННЫЕ И БАЗА (в стиле основного сайта) ===== */
:root {
    --glass-bg: rgba(10, 10, 20, 0.5);
    --glass-bg-heavy: rgba(10, 10, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-border-heavy: rgba(255, 255, 255, 0.25);
    --blur-amount: 24px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glass-heavy: 0 16px 64px 0 rgba(0, 0, 0, 0.7);
    --radius-glass: 28px;
}

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

html {
    background-color: #000000;
    color-scheme: dark;
}

body {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background-color: #000000;
}

/* ===== ФОН С ГРАДИЕНТОМ И LIQUID BLOBS ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.8) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9) 0%, transparent 55%),
        linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0f0f1f 100%);
    background-size: 200% 200%;
    animation: gradientShiftAuth 22s ease infinite;
}

@keyframes gradientShiftAuth {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 0, 0, 0.6) 0%, transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.55) 0%, transparent 45%),
        radial-gradient(circle at 50% 25%, rgba(206, 82, 10, 0.16) 0%, transparent 45%);
    filter: blur(42px);
    animation: blobMoveAuth 26s ease-in-out infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

@keyframes blobMoveAuth {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    33% {
        transform: translate(6%, -4%) scale(1.1);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    66% {
        transform: translate(-4%, 5%) scale(0.9);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}

/* ===== ОБЩИЙ ЛЕЙАУТ ===== */
.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
}

.auth-card {
    max-width: 480px;
    width: 100%;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-amount)) saturate(180%);
    border-radius: var(--radius-glass);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-heavy);
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.16) 0%, transparent 55%);
    filter: blur(26px);
    opacity: 0.9;
    animation: authGlassBlob 18s ease-in-out infinite;
    pointer-events: none;
}

@keyframes authGlassBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, -10%) scale(1.15); }
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

/* ===== ЛОГОТИП ===== */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.auth-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ===== КОНТЕНТ ===== */
.auth-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-title {
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===== ФОРМА ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 82, 82, 0.5);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.password-toggle svg {
    display: block;
}

/* ===== ОПЦИИ ФОРМЫ ===== */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: rgba(255, 107, 53, 0.9);
    border-color: rgba(255, 107, 53, 0.9);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    line-height: 1.4;
}

.form-link {
    font-size: 14px;
    color: rgba(255, 107, 53, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: rgba(255, 107, 53, 1);
    text-decoration: underline;
}

.form-link-inline {
    color: rgba(255, 107, 53, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link-inline:hover {
    color: rgba(255, 107, 53, 1);
    text-decoration: underline;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
    width: 200px;
    height: 200px;
}

.btn-orange {
    background: rgba(255, 107, 53, 0.9);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 107, 53, 0.45);
}

.btn-orange:hover {
    background: rgba(255, 107, 53, 1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(255, 107, 53, 0.55);
}

.btn:active {
    transform: translateY(0);
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-divider span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ФУТЕР ===== */
.auth-footer {
    text-align: center;
}

.auth-footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-footer-link {
    color: rgba(255, 107, 53, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: rgba(255, 107, 53, 1);
    text-decoration: underline;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 24px 32px;
        border-radius: 22px;
        max-width: 100%;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-link {
        align-self: flex-end;
    }
}

/* ===== СТИЛИ ДЛЯ ОШИБОК ВАЛИДАЦИИ ===== */
.form-errors,
.field-errors {
    margin-top: 8px;
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    display: block;
}

.form-errors {
    margin-bottom: 16px;
}

.form-errors .error-message {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
}

.field-errors .error-message {
    margin-top: 6px;
}

/* Стили для полей с ошибками */
.form-input.error,
.form-input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 107, 107, 0.5);
}

.form-input.error:focus {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 20px 12px;
    }

    .auth-card {
        padding: 24px 20px 28px;
    }

    .auth-logo-text {
        font-size: 20px;
    }

    .auth-logo-icon {
        width: 32px;
        height: 32px;
    }

    .auth-title {
        font-size: 22px;
    }

    .form-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}





