.auth-container { position: fixed; inset: 0; background: var(--bg-primary); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; transition: background 0.3s; }
.auth-container.active { display: flex; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 30px 20px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 40px var(--shadow-color); transition: background 0.3s, border-color 0.3s; }

.auth-logo-wrap { width: 80px; height: 80px; background: rgba(227, 179, 65, 0.1); border: 1px solid rgba(227, 179, 65, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: 0 0 20px rgba(227, 179, 65, 0.2); }
.social-auth-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); transition: transform 0.1s; }
.btn-google { background: #fff; color: #3c4043; }
.btn-yandex { background: #FC3F1D; color: #fff; }

.auth-divider { display: flex; align-items: center; text-align: center; margin-bottom: 20px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider span { padding: 0 10px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; }

.auth-tabs { display: flex; gap: 10px; margin-bottom: 24px; background: var(--bg-primary); border-radius: 12px; padding: 4px; border: 1px solid var(--border); }
.auth-tab { flex: 1; padding: 10px; background: transparent; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.auth-tab.active { background: var(--accent); color: #000; }
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }
.auth-form input { background: var(--input-bg) !important; border: 1px solid var(--border) !important; color: var(--text-primary) !important; padding: 14px; width: 100%; border-radius: 10px; outline: none; }
.auth-form input:focus { border-color: var(--accent) !important; }

.auth-container { position: fixed; inset: 0; background: var(--bg-primary); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; transition: background 0.3s; }
.auth-container.active { display: flex; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 30px 20px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 40px var(--shadow-color); transition: background 0.3s, border-color 0.3s; }

.auth-logo-wrap { width: 80px; height: 80px; background: rgba(227, 179, 65, 0.1); border: 1px solid rgba(227, 179, 65, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: 0 0 20px rgba(227, 179, 65, 0.2); }
.social-auth-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); transition: transform 0.1s; }
.btn-social:active { transform: scale(0.97); }

/* Яндекс кнопка */
.btn-yandex { background: #FC3F1D; color: #fff; border-color: #FC3F1D; }

.auth-divider { display: flex; align-items: center; text-align: center; margin-bottom: 20px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider span { padding: 0 10px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; }

.auth-tabs { display: flex; gap: 10px; margin-bottom: 24px; background: var(--bg-primary); border-radius: 12px; padding: 4px; border: 1px solid var(--border); }
.auth-tab { flex: 1; padding: 10px; background: transparent; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.auth-tab.active { background: var(--accent); color: #000; }

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }
.auth-form input { background: var(--input-bg); border: 1px solid var(--border); color: var(--text-primary); padding: 14px; width: 100%; border-radius: 12px; outline: none; transition: border-color 0.2s; }
.auth-form input:focus { border-color: var(--accent); }

/* Анимация переходов шагов регистрации */
#reg-step-1, #reg-step-2, #reg-step-3 { animation: fadeIn 0.3s ease; }