/* MUJ-BATCH-4 | account.css | MyUncleJoe Build v1.0 */
/* Login, register, OAuth, dashboard, vehicle management */

/* ── AUTH PAGE ───────────────────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-4);
}

.auth-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 440px;
    padding: var(--space-10) var(--space-8);
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-card__title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: var(--space-2);
}

.auth-card__sub {
    color: var(--color-muted);
    font-size: var(--text-sm);
}

/* OAuth buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    border: 1.5px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-navy);
}

.oauth-btn:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    color: var(--color-navy);
}

.oauth-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-5) 0;
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.auth-card__switch {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-muted);
}

.auth-card__switch a {
    color: var(--color-teal);
    font-weight: 600;
}

/* ── DASHBOARD ───────────────────────────────────────────────────────────── */
.dashboard-page {
    padding: var(--space-10) 0 var(--space-16);
}

.dashboard-header {
    margin-bottom: var(--space-10);
}

.dashboard-header__greeting {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-navy);
}

.dashboard-header__greeting span {
    color: var(--color-teal);
}

.dashboard-header__sub {
    color: var(--color-muted);
    margin-top: var(--space-1);
}

/* Savings tracker hero */
.savings-tracker {
    background: linear-gradient(135deg, var(--color-navy) 0%, #2A5298 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    margin-bottom: var(--space-8);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-8);
    align-items: center;
}

.savings-tracker__left {}

.savings-tracker__label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.savings-tracker__amount {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--color-amber);
    line-height: 1;
    letter-spacing: -2px;
}

.savings-tracker__sub {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.savings-tracker__stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.savings-tracker__stat {
    text-align: right;
}

.savings-tracker__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-white);
}

.savings-tracker__stat-label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.6);
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-8);
    align-items: start;
}

/* Vehicle list */
.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.vehicle-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: box-shadow var(--transition-fast);
}

.vehicle-card:hover {
    box-shadow: var(--shadow-card);
}

.vehicle-card__icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-teal-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-teal);
    font-size: var(--text-xl);
}

.vehicle-card__info {
    flex: 1;
    min-width: 0;
}

.vehicle-card__name {
    font-weight: 700;
    color: var(--color-navy);
    font-size: var(--text-md);
}

.vehicle-card__ymm {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

.vehicle-card__mileage {
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: var(--space-1);
}

.vehicle-card__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* Audit history list */
.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.history-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-decoration: none;
    transition: box-shadow var(--transition-fast);
}

.history-item:hover {
    box-shadow: var(--shadow-card);
    color: var(--color-text);
}

.history-item__savings {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-amber);
    min-width: 80px;
    flex-shrink: 0;
}

.history-item__info {
    flex: 1;
    min-width: 0;
}

.history-item__shop {
    font-weight: 600;
    color: var(--color-navy);
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item__meta {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.history-item__flags {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .savings-tracker {
        grid-template-columns: 1fr;
    }

    .savings-tracker__stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .savings-tracker__stat {
        text-align: left;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: var(--space-8) var(--space-6);
    }
}
