.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .auth-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-header {
    padding-bottom: 1.5rem;
}

.auth-header h1 {
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.auth-body {
    padding: 1rem 0;
}

.input-group-text {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.input-group .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.language-switcher .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-switcher .btn {
    transition: all 0.3s ease;
}

.theme-switcher .btn:hover {
    transform: translateY(-2px);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
}

.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}