/* ============================================================
   CUSTOMER ACCOUNT
   ============================================================ */

.customer-modal-overlay {
    padding: 16px;
}

.customer-modal-content {
    max-width: 520px;
    padding: 0;
    overflow-x: hidden;
}

.customer-modal-content > .modal-header-row {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 2;
}

.customer-modal-content > .modal-header-row h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.customer-auth-section,
.customer-account-section {
    width: 100%;
}

.customer-auth-section {
    padding: 20px;
}

.customer-auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-color);
    border-radius: 13px;
    margin-bottom: 18px;
}

.customer-auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.customer-auth-tab.active {
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   PASSWORD RESET REQUEST
   ============================================================ */

.customer-forgot-password-link {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
    margin-bottom: 2px;
}

.customer-forgot-password-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 38px;
    padding: 7px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 3;
}

.customer-forgot-password-btn:hover {
    background: var(--customer-accent-soft);
}

.customer-forgot-password-btn:active {
    transform: translateY(1px);
}

.customer-forgot-password-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.customer-password-reset-request-form {
    position: relative;
}

.customer-password-reset-request-icon {
    width: 58px;
    height: 58px;
    margin: 2px auto 4px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--customer-accent-soft);
    border: 1px solid var(--customer-accent-border);
    font-size: 1.65rem;
}

.customer-password-reset-request-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2px;
}

.customer-password-reset-request-form .customer-form-description {
    text-align: center;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
}

.customer-secondary-btn {
    width: 100%;
    margin-top: 0;
    padding: 11px 12px;
    font-size: 0.86rem;
    touch-action: manipulation;
}

.customer-password-reset-request-form .customer-auth-message {
    text-align: center;
}


/* ============================================================
   CUSTOMER FORMS
   ============================================================ */

.customer-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.customer-form-description {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.customer-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customer-form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color);
}

.customer-submit-btn {
    margin-top: 0;
    padding: 12px;
    font-size: 0.9rem;
}

.customer-auth-message,
.customer-global-message {
    min-height: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.customer-auth-message.error,
.customer-global-message.error {
    color: #dc2626;
}

.customer-auth-message.success,
.customer-global-message.success {
    color: var(--customer-success);
}