/* ═══════════════════════════════════════════════════════════════════════════
   Auth Pages — Login, Signup, Logout
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.auth-card__header {
    background: #000;
    color: #fff;
    padding: 32px 40px 28px;
    text-align: center;
}

.auth-card__logo {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.auth-card__subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.auth-card__body {
    padding: 32px 40px 40px;
}

/* Form Fields */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.auth-field input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    background: #fff;
}

.auth-field .helptext,
.auth-field .help-block {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* Errors */
.auth-field .errorlist,
.auth-errors {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.auth-field .errorlist li,
.auth-errors li {
    background: #FFF0F0;
    color: #C0392B;
    font-size: 0.8125rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    border-left: 3px solid #E74C3C;
}

/* Submit */
.auth-submit {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.auth-submit:hover {
    background: #222;
}

.auth-submit:active {
    transform: scale(0.98);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #aaa;
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Social login */
.auth-social {
    display: flex;
    gap: 12px;
}

.auth-social a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.auth-social a:hover {
    border-color: #000;
    background: #f8f8f8;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: #666;
}

.auth-links a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-links a:hover {
    color: var(--color-accent, #E74C3C);
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.8125rem;
}

.auth-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #555;
}

.auth-remember a {
    color: #000;
    text-decoration: underline;
}

/* ═══ Account Dashboard ═══ */
.account-page {
    padding: 40px 0;
    min-height: 70vh;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

/* Sidebar */
.account-sidebar {
    background: #fff;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 24px 0;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.account-sidebar__user {
    padding: 0 24px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
    text-align: center;
}

.account-sidebar__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.account-sidebar__name {
    font-weight: 700;
    font-size: 1rem;
}

.account-sidebar__email {
    font-size: 0.8125rem;
    color: #888;
}

.account-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    color: #444;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.account-sidebar__nav a:hover,
.account-sidebar__nav a.active {
    background: #f8f8f8;
    color: #000;
    border-left-color: #000;
}

.account-sidebar__nav a i {
    width: 20px;
    text-align: center;
    color: #888;
}

.account-sidebar__nav a.active i,
.account-sidebar__nav a:hover i {
    color: #000;
}

/* Main Content Area */
.account-main {
    background: #fff;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 32px;
}

.account-main__title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.orders-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 12px 16px;
    border-bottom: 2px solid #f0f0f0;
}

.orders-table td {
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9375rem;
}

.orders-table tr:hover td {
    background: #fafafa;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status--pending { background: #FFF3CD; color: #856404; }
.order-status--confirmed { background: #D1ECF1; color: #0C5460; }
.order-status--processing { background: #E2E3F1; color: #383D41; }
.order-status--shipped { background: #CCE5FF; color: #004085; }
.order-status--delivered { background: #D4EDDA; color: #155724; }
.order-status--cancelled { background: #F8D7DA; color: #721C24; }
.order-status--returned { background: #F5C6CB; color: #721C24; }

/* ═══ Address Cards ═══ */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.address-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: border-color 0.2s;
}

.address-card:hover {
    border-color: #000;
}

.address-card--default {
    border-color: #000;
    background: #fafafa;
}

.address-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.address-card__name {
    font-weight: 700;
    margin-bottom: 4px;
}

.address-card__line {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}

.address-card__actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.address-card__actions a,
.address-card__actions button {
    font-size: 0.8125rem;
    color: #555;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.address-card__actions a:hover,
.address-card__actions button:hover {
    color: #000;
}

/* ═══ Profile Form ═══ */
.profile-form {
    max-width: 560px;
}

.profile-form .auth-field {
    margin-bottom: 20px;
}

/* ═══ Empty State ═══ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: #ccc;
}

.empty-state p {
    margin-bottom: 16px;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    .account-sidebar {
        position: static;
    }
    .auth-card__body {
        padding: 24px 20px 32px;
    }
    .auth-card__header {
        padding: 24px 20px;
    }
}
