/* ============================================================
   PriceHound — app.css
   Palette: deep ink (#161A1D), warm bone (#F7F4EE),
            rust accent (#C2562C), muted sage (#7A8B6F)
   Type: 'Fraunces' for display, 'Inter' for body/UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
    --ink: #161A1D;
    --bone: #F7F4EE;
    --rust: #C2562C;
    --sage: #7A8B6F;
    --border: #E3DDD0;
    --error: #B3261E;
    --error-bg: #FBEAE8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bone);
    color: var(--ink);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px 32px;
}

.auth-logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
}

.auth-card h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    margin: 0 0 8px;
}

.auth-subtitle {
    color: #6B6458;
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}

form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 16px;
}

form input[type="email"],
form input[type="password"],
form input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bone);
}

form input:focus {
    outline: 2px solid var(--rust);
    outline-offset: 1px;
    background: #fff;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #8A8275;
    margin-top: 4px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--rust);
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    margin-right: 5px;
}


.btn-primary:hover { background: #A6481F; }
.btn-primary:disabled { background: #D8B8A6; cursor: not-allowed; }

.btn-block {
    width: 100%;
    margin-top: 24px;
}

.auth-links-row {
    text-align: right;
    margin-top: 8px;
}

.auth-links-row a {
    font-size: 13px;
    color: var(--sage);
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #6B6458;
}

a { color: var(--rust); }

.alert {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}
