/* CarSearch: a small layer on top of the Radzen material theme. */

html, body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- sign-in --- */

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border: 1px solid #d9dce2;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(16, 20, 28, .08);
}

.login-title {
    margin: 0 0 .25rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1e25;
}

.login-subtitle {
    margin: 0 0 1.5rem;
    color: #5b6370;
    font-size: .9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.login-label {
    font-size: .8rem;
    font-weight: 600;
    color: #3c434f;
    margin-top: .6rem;
}

.login-input {
    padding: .55rem .65rem;
    border: 1px solid #c6cad2;
    border-radius: 5px;
    font-size: .95rem;
}

.login-input:focus {
    outline: 2px solid #2440b3;
    outline-offset: 1px;
    border-color: #2440b3;
}

.login-button {
    margin-top: 1.25rem;
    padding: .6rem;
    background: #2440b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover { background: #1d3596; }

.login-error {
    background: #fdecea;
    border: 1px solid #f5c2bb;
    color: #93291c;
    padding: .6rem .75rem;
    border-radius: 5px;
    font-size: .875rem;
    margin-bottom: 1rem;
}

/* --- listings --- */

.listing-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    background: #eceef2;
}

.listing-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a0ae;
    font-size: .8rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-label {
    font-size: .8rem;
    color: #5b6370;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.price-drop { color: #1f7a4d; font-weight: 600; }

/* --- dashboard --- */

.recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .25rem;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.recent-row:hover { background: #eceef2; }

.recent-row:focus-visible {
    outline: 2px solid #2440b3;
    outline-offset: -2px;
}

.recent-row-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.recent-row-title {
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-row-meta {
    font-size: .75rem;
    color: #5b6370;
}

.recent-row-price {
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
