/* ===================================
   LOGIN PAGE STYLES
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #0A0A0A;
    color: #FFFFFF;
    overflow: hidden;
}

/* ===================================
   LAYOUT
   =================================== */

.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===================================
   ЛЕВАЯ ПАНЕЛЬ (БРЕНДИНГ)
   =================================== */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    border-right: 1px solid #2A2A2A;
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы на фоне */
.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.brand-section {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.brand-logo {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.brand-logo .logo-version {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    vertical-align: super;
    margin-left: 4px;
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 16px;
}

.brand-subtitle {
    font-size: 18px;
    color: #9CA3AF;
    line-height: 1.6;
}

/* Список преимуществ */
.features-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.5;
}

/* ===================================
   ПРАВАЯ ПАНЕЛЬ (ФОРМА)
   =================================== */

.login-right {
    flex: 1;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.login-form-wrapper {
    width: 100%;
    max-width: 440px;
}

/* Заголовок формы */
.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #6B7280;
}

/* ===================================
   ФОРМА
   =================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Группа полей */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.form-input::placeholder {
    color: #6B7280;
}

.form-input:focus {
    border-color: #F59E0B;
    background: #1E1E1E;
}

.form-input:hover {
    border-color: #3A3A3A;
}

/* Обёртка для поля пароля с кнопкой показа */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 18px;
}

/* Ошибки валидации */
.form-error {
    font-size: 12px;
    color: #EF4444;
    min-height: 18px;
    display: block;
}

/* ===================================
   ОПЦИИ ФОРМЫ
   =================================== */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
}

/* Чекбокс "Запомнить меня" */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #F59E0B;
}

.checkbox-text {
    font-size: 14px;
    color: #9CA3AF;
}

/* Ссылка "Забыли пароль?" */
.forgot-password-link {
    font-size: 14px;
    color: #F59E0B;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #D97706;
    text-decoration: underline;
}

/* ===================================
   КНОПКА ВХОДА
   =================================== */

.login-btn {
    width: 100%;
    padding: 16px;
    background: #F59E0B;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.login-btn:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

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

.login-btn:disabled {
    background: #6B7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Состояние загрузки */
.login-btn.loading {
    background: #3B82F6;
    pointer-events: none;
}

.login-btn.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   РАЗДЕЛИТЕЛЬ
   =================================== */

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2A2A2A;
}

.divider-text {
    padding: 0 16px;
    font-size: 13px;
    color: #6B7280;
}

/* ===================================
   РЕГИСТРАЦИЯ
   =================================== */

.register-section {
    text-align: center;
}

.register-text {
    font-size: 14px;
    color: #9CA3AF;
}

.register-link {
    color: #F59E0B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register-link:hover {
    color: #D97706;
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */

.login-footer {
    margin-top: 40px;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: #6B7280;
}

/* ===================================
   АДАПТИВНОСТЬ
   =================================== */

@media (max-width: 1024px) {
    .login-left {
        padding: 40px 60px;
    }

    .brand-title {
        font-size: 36px;
    }

    .brand-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 24px;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-title {
        font-size: 28px;
    }

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

@media (max-width: 480px) {
    .login-title {
        font-size: 24px;
    }

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

    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
}
