:root {
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --error-bg: #fef2f2;
    --error-text: #b91c1c;
    --radius: 12px;
}

.account {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--bg-card);
    padding: 2vw; /* Адаптивний відступ */
    min-width: 280px;
    width: 100%;
}

/* Аватар з літерами */
.user-avatar {
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 32px);
    margin: 0 auto 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.account__title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Форми та інпути */
.account form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account input {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
}

.account input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Кнопки */
.account button {
    cursor: pointer;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

.account button[type="submit"], 
.account button[data-action="show-login"],
.account button[data-action="show-register"] {
    background: var(--accent-color);
    color: white;
}

.account button[type="submit"]:hover {
    background: var(--accent-hover);
}

.account button[data-action="back"], 
#logoutBtn {
    background: #f3f4f6;
    color: var(--text-main);
    margin-top: 8px;
}

.account button[data-action="back"]:hover,
#logoutBtn:hover {
    background: #e5e7eb;
}

/* Повідомлення про помилку */
.error {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border-left: 4px solid var(--error-text);
}

/* Оптимізація для мобілок */
@media (max-width: 600px) {
    .account {
        padding: 20px;
    }
    .account input, .account button {
        font-size: 16px; /* Запобігає зуму на iPhone */
    }
}/*   */
.btn-primary {
    background: var(--accent-color) !important;
    color: white !important;
}
.btn-primary:hover {
    background: var(--accent-hover) !important;
}

.btn-secondary {
    background: #f3f4f6 !important;
    color: var(--text-main) !important;
    border: 1px solid #e5e7eb !important;
}
.btn-secondary:hover {
    background: #e5e7eb !important;
}

.btn-danger {
    background: #ef4444 !important;
    color: white !important;
}
.btn-danger:hover {
    background: #dc2626 !important;
}
