/* ============================================================
   ACCOUNT & AUTH PAGES STYLES
   ============================================================ */

/* --- Auth (Login / Register) --- */
.auth-layout {
    max-width: 480px;
    margin: 80px auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--light-grey);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}

.auth-switch {
    font-size: 13px;
    color: var(--grey);
}

.auth-switch a {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
}

/* --- Account Dashboard --- */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    padding: 60px 0 100px;
}

.account-sidebar {
    border-right: 1px solid var(--lighter-grey);
    padding-right: 20px;
}

.account-user {
    margin-bottom: 32px;
}

.account-user h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.account-user p {
    font-size: 12px;
    color: var(--grey);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav a {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--grey);
    transition: var(--transition-fast);
}

.account-nav a:hover {
    color: var(--black);
    background: var(--off-white);
}

.account-nav a.active {
    color: var(--black);
    background: var(--off-white);
}

.account-content h3 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-grey);
}

/* Orders Table */
.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-grey);
}

.order-table td {
    padding: 20px 0;
    border-bottom: 1px solid var(--lighter-grey);
    font-size: 14px;
}

.order-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #fff3e0; color: #ef6c00; }

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .account-sidebar {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--light-grey);
        padding-bottom: 20px;
    }
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .account-nav a {
        white-space: nowrap;
    }
    .order-table {
        display: block;
        overflow-x: auto;
    }
}
