.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: #666;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    background: none; border: none;
    padding: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #888;
}

.auth-tab.active {
    color: var(--color-oxblood, #8b0000);
    border-bottom-color: var(--color-oxblood, #8b0000);
}

.auth-form-container {
    display: none;
}
.auth-form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}
.form-group.half { flex: 1; }
.form-group.third { flex: 1; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
}

.form-error {
    color: red;
    font-size: 0.85rem;
    margin-bottom: 15px;
    min-height: 20px;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.auth-submit-btn:hover { background: #333; }
.auth-submit-btn:disabled { background: #999; cursor: not-allowed; }

.header-account-btn {
    background: none;
    border: 1px solid #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-body);
    margin-right: 10px;
}
.theme-light .header-account-btn {
    border-color: #fff;
    color: #fff;
}
