/* ==========================================================================
   MAMUCART - Account, Orders & Auth CSS
   Dashboard, Orders Stepper, Profile, Wishlist, Login/Register
   ========================================================================== */

/* Account Layout */
.account-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.account-user-profile-header {
    background: linear-gradient(135deg, var(--dark-teal) 0%, #064552 100%);
    padding: 1.5rem 1.25rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.account-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.account-user-email {
    font-size: 0.8rem;
    color: #c0d8de;
    margin: 0;
}

/* Sidebar Nav Links */
.account-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.account-nav-item:last-child a {
    border-bottom: none;
}

.account-nav-item a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.account-nav-item.active a, .account-nav-item a:hover {
    background-color: var(--light-green);
    color: var(--dark-teal);
    border-left: 4px solid var(--primary-green);
}

.account-nav-item.active a i, .account-nav-item a:hover i {
    color: var(--primary-green);
}

.account-badge-num {
    margin-left: auto;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
}

/* Dashboard Summary Metrics */
.dash-metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.dash-metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.metric-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.metric-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Order Item Card */
.order-history-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.order-history-header {
    background-color: #f8fafc;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.order-status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.order-status-badge.status-delivered {
    background-color: #eaf6e1;
    color: #276b05;
}

.order-status-badge.status-shipped {
    background-color: #e0f2fe;
    color: #0369a1;
}

.order-status-badge.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.order-status-badge.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.order-timeline-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 1.5rem 0;
    margin: 1rem 0;
}

.order-timeline-stepper::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
}

.stepper-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.stepper-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #cbd5e1;
    color: var(--white);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.stepper-step.completed .stepper-bullet {
    background-color: var(--primary-green);
}

.stepper-step.current .stepper-bullet {
    background-color: var(--dark-teal);
    box-shadow: 0 0 0 4px rgba(0, 46, 56, 0.2);
}

.stepper-text {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stepper-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================================================
   AUTHENTICATION CARDS (LOGIN / REGISTER / FORGOT)
   ========================================================================== */
.auth-wrapper-box {
    max-width: 440px;
    margin: 3rem auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem 2rem;
}

.auth-header-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header-brand img {
    height: 100px;
}

.auth-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.auth-input-ctrl {
    width: 100%;
    padding: 0.65rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.auth-input-ctrl:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(80, 174, 18, 0.15);
}

.auth-footer-nav {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.86rem;
}
