/* Auth & Profile pages */
.auth-page, .profile-page { padding: 40px 0 60px; }

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.auth-card-header h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card-header p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

.auth-providers { display: flex; flex-direction: column; gap: 12px; }
.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px; border-radius: var(--radius); font-weight: 600;
    font-size: 0.95rem; transition: var(--transition);
}
.auth-btn-vk { background: #0077FF; color: #fff; }
.auth-btn-vk:hover { background: #0066DD; color: #fff; }
.auth-btn-google { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.auth-btn-google:hover { background: var(--bg); }
.auth-telegram { display: flex; justify-content: center; padding: 8px 0; }

.auth-alert {
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem;
}
.auth-alert-error { background: #FFF0F0; color: var(--red); }
.auth-alert-success { background: #E8F5E9; color: #2E7D32; }
.auth-alert-info { background: var(--primary-light); color: var(--text-secondary); font-size: 0.85rem; }
.auth-alert-info pre { margin-top: 8px; font-size: 0.8rem; overflow-x: auto; }
.auth-footer-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 20px; }
.auth-form { margin-bottom: 16px; }
.auth-switch { text-align: center; font-size: 0.9rem; color: var(--text-secondary); margin: 16px 0; }
.auth-switch a { color: var(--primary); font-weight: 500; }
.auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
}
.profile-online-dot {
    position: absolute; bottom: 4px; right: 4px;
    width: 14px; height: 14px; background: var(--green);
    border: 2px solid var(--white); border-radius: 50%;
}
.profile-presence {
    font-size: 0.9rem; color: var(--text-muted); margin: -8px 0 12px;
}
.profile-presence.online { color: var(--green); font-weight: 500; }
.profile-header {
    display: flex; gap: 24px; align-items: flex-start;
    background: var(--white); padding: 28px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 32px;
}
.profile-header-info h1, .profile-header-info h2 { font-size: 1.5rem; margin-bottom: 4px; }
.profile-username { color: var(--text-muted); margin-bottom: 12px; }
.profile-stats { display: flex; gap: 20px; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; }
.profile-stats i { color: var(--orange); margin-right: 4px; }
.profile-bio { color: var(--text-secondary); max-width: 560px; }
.profile-actions { display: flex; gap: 10px; margin-top: 16px; }

.profile-cabinet-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.cabinet-card {
    background: var(--white); padding: 24px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center;
    gap: 10px; text-align: center; font-weight: 500; transition: var(--transition);
}
.cabinet-card:hover { box-shadow: var(--shadow-lg); color: var(--primary); }
.cabinet-card i { font-size: 1.5rem; color: var(--primary); }

.settings-layout { display: grid; gap: 24px; max-width: 720px; }
.settings-card {
    background: var(--white); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.settings-card h2 { font-size: 1.1rem; margin-bottom: 16px; }
.oauth-links { list-style: none; color: var(--text-secondary); font-size: 0.9rem; }
.oauth-links li { padding: 6px 0; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-input, .form-textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius); background: var(--white);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-actions { justify-content: center; }
}
