/* ==========================================
   AUTH PAGE
   ========================================== */

.auth-page {
    max-width: 440px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

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

.auth-title {
    font-size: 32px;
    font-weight: 400;
    color: #191919;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #888;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e4e4e4;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.auth-tab:hover {
    color: #191919;
}

.auth-tab.active {
    color: #191919;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #191919;
}

/* Form */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #191919;
    margin-bottom: 8px;
}

.auth-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Arimo', sans-serif;
    font-size: 15px;
    color: #191919;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    border-color: #191919;
}

.auth-field input::placeholder {
    color: #bbb;
}

.auth-submit {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: #191919;
    color: #fff;
    border: none;
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}

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

.auth-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.auth-message.error {
    display: block;
    background: #fef2f2;
    color: #a33;
    border: 1px solid #fecaca;
}

.auth-message.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Google Button */
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Arimo', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #191919;
    cursor: pointer;
    transition: all 0.2s;
}

.google-btn:hover {
    border-color: #191919;
    background: #fafafa;
}

.google-btn svg {
    flex-shrink: 0;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    color: #ccc;
    font-size: 13px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: #e4e4e4;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* Account Page */
.account-page {
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

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

.account-title {
    font-size: 32px;
    font-weight: 400;
    color: #191919;
    margin-bottom: 8px;
}

.account-email {
    font-size: 15px;
    color: #888;
}

/* Account Tabs */
.account-tabs {
    display: flex;
    border-bottom: 2px solid #e4e4e4;
    margin-bottom: 32px;
}

.account-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-family: 'Arimo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.account-tab:hover {
    color: #191919;
}

.account-tab.active {
    color: #191919;
}

.account-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #191919;
}

/* Account Sections */
.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #191919;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.security-divider {
    height: 1px;
    background: #e4e4e4;
    margin: 36px 0;
}

.signout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: #fff;
    color: #a33;
    border: 1.5px solid #ddd;
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.signout-btn:hover {
    border-color: #a33;
    background: #fef2f2;
}

/* Orders */
.orders-empty {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 15px;
}

.orders-loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

.order-card {
    border: 1.5px solid #e4e4e4;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e4e4e4;
}

.order-number {
    font-size: 15px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 2px;
}

.order-date {
    font-size: 13px;
    color: #888;
}

.order-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
}

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

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

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

.order-card-items {
    padding: 16px 20px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #e4e4e4;
    background: #f9f9f9;
    font-size: 15px;
    font-weight: 600;
    color: #191919;
}

.order-total {
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767px) {
    .auth-page {
        padding: 40px 16px 60px;
    }

    .auth-title {
        font-size: 26px;
    }

    .account-page {
        padding: 40px 16px 60px;
    }

    .account-title {
        font-size: 26px;
    }

    .account-tab {
        font-size: 11px;
        padding: 12px 8px;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-item-row {
        font-size: 13px;
    }
}
