/* --- نافذة تسجيل الدخول (Etsy Style) --- */
.auth-modal .modal-content {
    max-width: 400px;
    border-radius: 24px; /* حواف دائرية واضحة مثل Etsy */
    padding: 24px;
    text-align: center;
}

.auth-modal .modal-header {
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
}

.auth-modal .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    border: none;
    margin: 0;
}

.auth-modal .close-modal {
    position: absolute;
    right: 0;
    top: -5px;
    font-size: 1.5rem;
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal .close-modal:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

.auth-form {
    text-align: right;
}

.auth-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .input-group input {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
}

.btn-auth-main {
    background-color: #111827; /* زر أسود عريض */
    color: white;
    border-radius: 24px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.btn-auth-main:hover {
    background-color: #000000;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider:not(:empty)::before { margin-left: .5em; }
.auth-divider:not(:empty)::after { margin-right: .5em; }

.btn-google {
    background-color: white;
    color: var(--text-main);
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f9fafb;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.auth-toggle {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-toggle a {
    color: var(--text-main);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.forgot-password-link-container {
    text-align: right;
    margin-top: -0.5rem;
}

.forgot-password-link {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* --- تعديلات الهيدر --- */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-login-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 24px;
    padding: 0.4rem 1rem;
    font-weight: bold;
}
.btn-login-outline:hover {
    background: rgba(255,255,255,0.1);
}