/* Компоненты */
.card, .glass-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 32px 36px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card h2, .card h3 { 
    margin-top: 0; 
}

/* Кнопки */
.btn, .btn-primary, .btn-register, .btn-outline-primary, .btn-secondary, .page-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn:hover, .btn-primary:hover, .btn-register:hover, .btn-outline-primary:hover, .btn-secondary:hover, .page-btn:hover {
    background: var(--gradient-hover);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px) scale(1.03);
}

.btn:focus, .btn-primary:focus, .btn-register:focus, .btn-outline-primary:focus, .btn-secondary:focus, .page-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Ссылки */
a, .nav-link, .dropdown-item {
    color: var(--primary-color);
    text-decoration: none !important;
    transition: color 0.2s;
}

a:hover, .nav-link:hover, .dropdown-item:hover {
    color: var(--primary-hover);
    text-decoration: none !important;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6, .card-title, .welcome-title, .office-gallery-title, .section-title, .modal-title, .accordion-header, .footer-sections-title, .footer-name {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(74,112,74,0.08);
}

/* Alert */
.alert-success, .alert-info, .alert-warning {
    background: linear-gradient(135deg, var(--success-light) 0%, var(--success-lighter) 100%);
    color: var(--success-color);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-light) 0%, var(--danger-lighter) 100%);
    color: var(--danger-color);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Формы */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 112, 74, 0.18);
}

/* Навигация */
.nav-link, .dropdown-item {
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    border-radius: 10px;
    transition: background 0.18s, color 0.18s;
}

.nav-link:hover, .nav-link.active, .dropdown-item:hover, .dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary-hover);
    text-decoration: none;
}

/* Dropdowns */
.dropdown-menu {
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
    background: var(--white);
    border: none;
    padding: 12px;
    min-width: 220px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block;
    visibility: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 1.05em;
    border-radius: 12px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
    font-size: 1.1em;
}

.nav-link.dropdown-toggle {
    font-size: 1.1em;
    padding: 8px 16px;
    position: relative;
}

.nav-link.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.nav-link.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Анимация для выпадающего меню */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease forwards;
}

/* Password Validation */
.password-requirements {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.requirement-item {
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.requirement-item i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.requirement-item.text-success {
    color: var(--success-color);
}

.requirement-item.text-danger {
    color: var(--danger-color);
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Password Toggle Button */
.password-toggle-btn {
    background: none;
    border: none;
    padding: 0 0.5rem;
    font-size: 1rem;
    color: var(--text-light);
    box-shadow: none;
    line-height: 1;
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.form-control[type="password"] {
    padding-right: 2.5rem;
}

/* Адаптивность */
@media (max-width: var(--breakpoint-sm)) {
    .card, .glass-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .password-toggle-btn {
        right: 0.5rem;
        font-size: 1.1rem;
    }
    
    .form-control[type="password"] {
        padding-right: 2.2rem;
    }
}

.account-status-label {
    color: #1976d2;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.01em;
} 