/* Импорты шрифтов и иконок */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables для цветовых схем */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --red-gradient: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-heavy: 0 15px 35px rgba(31, 38, 135, 0.5);
    
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #f7fafc;
    --bg-secondary: #edf2f7;
    
    --ios-green: #34c759;
    --ios-red: #ff3b30;
    --ios-blue: #007aff;
    --ios-gray: #8e8e93;
}

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Дашборд */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Заголовок дашборда */
.dashboard-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
}

.dashboard-header h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Сетка дашборда с окном ошибок */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    grid-template-areas:
        "service stats security"
        "config config config"
        "logs logs errors";
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.card.gradient-blue::before { background: var(--info-gradient); }
.card.gradient-green::before { background: var(--success-gradient); }
.card.gradient-purple::before { background: var(--primary-gradient); }
.card.gradient-orange::before { background: var(--warning-gradient); }
.card.gradient-dark::before { background: var(--dark-gradient); }
.card.gradient-red::before { background: var(--red-gradient); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px;
}

.card-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-content {
    padding: 0 30px 30px;
}

/* Специальные размеры карточек */
.fields-config {
    grid-area: config;
}

.log-card {
    grid-area: logs;
}

.error-card {
    grid-area: errors;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-danger {
    background: rgba(255, 65, 108, 0.1);
    color: #ff416c;
    border: 1px solid rgba(255, 65, 108, 0.3);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Управление сервисом */
.service-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-status {
    font-size: 20px;
    animation: pulse 2s infinite;
}

.card-status.active {
    color: #4ade80;
    text-shadow: 0 0 20px #4ade80;
}

.card-status.inactive {
    color: #f87171;
    text-shadow: 0 0 20px #f87171;
}

/* Статистика файлов */
.file-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.stat-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

/* 2FA секция */
.security-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-indicator-large {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.status-indicator-large span {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.security-badge {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

.form-group.elegant label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.secret-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.secret-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-copy {
    padding: 12px;
    min-width: auto;
    aspect-ratio: 1;
}

.security-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Настройки парсера с iOS переключателями */
.fields-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.field-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.field-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.field-name {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.field-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.field-controls label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* iOS ПЕРЕКЛЮЧАТЕЛИ */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-left: 8px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 
                0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .ios-slider {
    background: var(--ios-green);
    border-color: var(--ios-green);
    box-shadow: 0 0 20px rgba(52, 199, 89, 0.4);
}

input:checked + .ios-slider:before {
    transform: translateX(22px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 
                0 1px 3px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(52, 199, 89, 0.1);
}

input:focus + .ios-slider {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Анимация нажатия */
.ios-slider:active:before {
    width: 24px;
}

input:checked + .ios-slider:active:before {
    transform: translateX(18px);
}

/* Логи */
.log-controls {
    display: flex;
    gap: 8px;
}

.log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-entry {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-entry.info {
    border-left: 3px solid #3b82f6;
}

.log-entry.error {
    border-left: 3px solid #ef4444;
}

.log-entry.warning {
    border-left: 3px solid #f59e0b;
}

.log-time {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    min-width: 80px;
}

.log-text {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    word-wrap: break-word;
}

/* НОВЫЕ СТИЛИ ДЛЯ ОКНА ОШИБОК */
.error-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-counter {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 59, 48, 0.3);
    min-width: 30px;
    text-align: center;
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
}

.error-container {
    background: rgba(139, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.error-entry {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.error-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.error-entry.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.error-entry.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.error-entry.critical {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
    animation: error-blink 1s infinite;
}

@keyframes error-blink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.error-time {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    min-width: 80px;
}

.error-text {
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    word-wrap: break-word;
}

.error-entry.error .error-text {
    color: #fca5a5;
}

.error-entry.warning .error-text {
    color: #fbbf24;
}

.error-entry.critical .error-text {
    color: #f87171;
    font-weight: 600;
}

/* Модальные окна */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modern-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.setup-step {
    margin-bottom: 30px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-header h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.qr-container {
    text-align: center;
}

.qr-frame {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-frame img {
    max-width: 200px;
    border-radius: 10px;
}

.qr-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.secret-display {
    display: flex;
    gap: 12px;
    align-items: center;
}

.secret-code {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    backdrop-filter: blur(10px);
    text-align: center;
    letter-spacing: 2px;
}

.verification-area {
    text-align: center;
}

.verification-input {
    width: 200px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.verification-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.input-helper {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Анимации */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #4ade80;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-skeleton {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 40px;
    font-style: italic;
    animation: pulse 2s infinite;
}

/* Иконки (простые CSS иконки) */
.icon-shield::before { content: '🛡️'; }
.icon-server::before { content: '🖥️'; }
.icon-files::before { content: '📁'; }
.icon-settings::before { content: '⚙️'; }
.icon-terminal::before { content: '💻'; }
.icon-key::before { content: '🔑'; }
.icon-play::before { content: '▶️'; }
.icon-stop::before { content: '⏹️'; }
.icon-refresh::before { content: '🔄'; }
.icon-save::before { content: '💾'; }
.icon-copy::before { content: '📋'; }
.icon-plus::before { content: '➕'; }
.icon-x::before { content: '❌'; }
.icon-check::before { content: '✅'; }
.icon-trash::before { content: '🗑️'; }
.icon-logout::before { content: '🚪'; }
.icon-alert::before { content: '⚠️'; }

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "service stats"
            "security security"
            "config config"
            "logs errors";
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "service"
            "stats"
            "security"
            "config"
            "logs"
            "errors";
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .card-content {
        padding: 0 20px 20px;
    }
    
    .file-stats {
        grid-template-columns: 1fr;
    }
    
    .service-controls,
    .security-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .field-controls {
        flex-direction: column;
        gap: 10px;
    }
}

/* Login страница */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-heavy);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

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

.error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    z-index: 1001;
    max-width: 400px;
    animation: slideInRight 0.4s ease;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.notification.success {
    border-left: 4px solid #4ade80;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

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

/* Дополнительные анимации */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(720deg); }
}

@keyframes modalFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

.field-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
