/* =========================================
   СТИЛИ ДЛЯ АВТОРИЗАЦИИ (Split-screen)
   ========================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #04060b; /* Самый темный фон */
    font-family: 'Inter', -apple-system, sans-serif;
    color: #f3f4f6;
}

.auth-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- ЛЕВАЯ ПАНЕЛЬ --- */
.auth-info-panel {
    flex: 1;
    background: linear-gradient(135deg, #090d16 0%, #111827 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #1f2937;
    position: relative;
    overflow: hidden;
}

/* Декоративное свечение */
.auth-info-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-info-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin-top: 10vh;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-big-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.auth-desc {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 40px;
}

.auth-features {
    display: flex;
    gap: 20px;
}

.feature-box {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 16px;
    flex: 1;
}

.feature-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.feature-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.auth-footer-info {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: #4b5563;
}

/* --- ПРАВАЯ ПАНЕЛЬ --- */
.auth-form-panel {
    width: 500px;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 360px;
}

/* --- СТИЛИ ФОРМЫ --- */
.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-control {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    color: #f3f4f6 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 0.95rem;
    height: auto !important;
}

.auth-form .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.auth-form .form-control::placeholder {
    color: #4b5563;
}

.auth-form .form-label {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.auth-form .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s;
}

.auth-form .btn-primary:hover {
    background: #e5e7eb !important;
}

.btn-webauthn {
    background: #111827 !important;
    border: 1px solid #374151 !important;
    color: #f3f4f6 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    margin-top: 12px;
}

.btn-webauthn:hover {
    background: #1f2937 !important;
    border-color: #4b5563 !important;
}

.auth-links {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.auth-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #3b82f6;
}

.invalid-feedback {
    color: #ef4444 !important;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.form-check-label {
    color: #9ca3af;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .auth-info-panel { display: none; }
    .auth-form-panel { width: 100%; }
}