/* ==========================================================================
   Quotsoft console — auth pages (login + Google complete-signup)
   Matches the commercial site's signup card. Tokens/fonts in tokens.css.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body); color: var(--text-primary);
    -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { text-decoration: none; color: inherit; }

/* buttons (subset ported from the site) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-ui); font-weight: 700; letter-spacing: 0.3px;
    text-transform: uppercase; border: none; border-radius: var(--radius-md);
    cursor: pointer; transition: transform var(--duration-base), box-shadow var(--duration-base);
    white-space: nowrap;
}
.btn-brand { color: #fff; background: var(--brand-500); box-shadow: var(--shadow-btn-inset); }
.btn-brand:hover { box-shadow: var(--shadow-btn-hover); }
.btn-white { color: var(--brand-500); background: #fff; }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { font-size: 16px; padding: 17px 32px; }
.btn-block { width: 100%; }

/* layout */
.auth {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 40px 24px; gap: 20px;
    background: radial-gradient(120% 120% at 50% 0%, var(--brand-500) 0%, var(--brand-700) 60%, var(--brand-900) 100%);
}
.auth-brand { display: flex; align-items: center; gap: 2px; }
.auth-brand img { width: 34px; height: 34px; display: block; }
.auth-brand span { font-family: var(--font-ui); font-weight: 600; font-size: 21px; letter-spacing: -0.2px; color: #fff; }

.auth-card {
    width: 100%; max-width: 440px; background: #fff;
    border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,0.4); overflow: hidden;
}
.auth-card.wide { max-width: 472px; }
.auth-accent { height: 4px; background: var(--brand-300); }
.auth-body { padding: 32px 36px 34px; }

/* titles */
.auth-title { font-family: var(--font-ui); font-weight: 800; font-size: 25px; letter-spacing: -0.4px; color: var(--neutral-950); margin: 0 0 6px; }
.auth-sub { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--neutral-600); margin: 0 0 22px; }

/* google button */
.auth-google {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-ui); font-weight: 700; font-size: 14.5px; color: var(--neutral-800);
    background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md);
    padding: 12px; cursor: pointer; margin-bottom: 18px;
    transition: background var(--duration-base), box-shadow var(--duration-base);
}
.auth-google:hover { background: var(--brand-100); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.auth-google svg { display: block; }

/* divider */
.auth-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.auth-divider span { font-family: var(--font-body); font-size: 12px; color: var(--neutral-500); }

/* fields */
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--neutral-700); margin: 0 0 6px; }
.auth-field input {
    width: 100%; font-family: var(--font-body); font-size: 15px; padding: 11px 13px;
    border: 1px solid var(--border-default); border-radius: var(--radius-sm); outline: none;
    color: var(--neutral-950); background: #fff;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.auth-field input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--focus-ring); }
.auth-field input:read-only { background: var(--brand-100); color: var(--neutral-600); cursor: default; }
.auth-hint { display: block; font-family: var(--font-body); font-size: 12px; color: var(--neutral-500); margin-top: 5px; }
.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* "signed in as" chip (google identity) */
.auth-identity { display: flex; align-items: center; gap: 10px; background: var(--brand-100); border: 1px solid var(--border-brand); border-radius: 10px; padding: 10px 14px; margin-bottom: 20px; }
.auth-identity .fa { color: var(--success-fg); font-size: 16px; }
.auth-identity .who { font-family: var(--font-body); font-size: 13.5px; color: var(--neutral-800); }
.auth-identity .who b { font-family: var(--font-ui); }

/* callout */
.auth-callout { display: flex; gap: 12px; background: var(--brand-100); border: 1px solid var(--border-brand); border-left: 10px solid var(--brand-500); border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; }
.auth-callout .fa { color: var(--brand-500); font-size: 17px; margin-top: 2px; }
.auth-callout p { font-family: var(--font-body); font-size: 13.5px; line-height: 1.55; color: var(--neutral-800); margin: 0; }

/* "new here" banner (signin → no account) */
.auth-banner { background: #eef7ee; border: 1px solid #cfe6cf; border-radius: 8px; padding: 12px 14px; margin: 0 0 20px; font-family: var(--font-body); font-size: 13.5px; color: #2f6b34; }

/* aux links + errors */
.auth-alt { text-align: center; font-family: var(--font-body); font-size: 13.5px; color: var(--neutral-600); margin: 20px 0 0; }
.auth-alt a { color: var(--brand-500); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }
.form-errors { background: #fdecec; border: 1px solid #f2b8b8; border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; }
.form-errors p { font-family: var(--font-body); font-size: 13.5px; line-height: 1.5; color: #b23838; margin: 0; }
.form-errors p + p { margin-top: 4px; }
.auth-error { background: #fdecec; border: 1px solid #f2b8b8; border-radius: 8px; padding: 12px 14px; margin: 0 0 18px; font-family: var(--font-body); font-size: 13.5px; color: #b23838; }

@media (max-width: 520px) {
    .auth { padding: 26px 14px; }
    .auth-body { padding: 26px 22px 28px; }
    .auth-title { font-size: 22px; }
}
