:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #20242a;
    background: #f3f5f7;
    font-synthesis: none;
    --finance: #d32f2f;
    --finance-dark: #b71c1c;
    --danger: #9b2c22;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f3f5f7;
}
.login-card {
    width: min(410px, calc(100% - 32px));
    padding: 34px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(0,0,0,.13);
}
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.finance-mark {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--finance);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}
h1 { margin: 0; font-size: 25px; }
.testmark { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--finance); letter-spacing: .06em; }
.subtitle { margin: 0 0 24px; color: #69717a; font-size: 14px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #555d65; }
input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd1d6;
    border-radius: 7px;
    background: #fff;
    color: #20242a;
    font: inherit;
    font-size: 15px;
}
input:focus { outline: none; border-color: var(--finance); box-shadow: 0 0 0 3px rgba(211,47,47,.12); }
button {
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    padding: 0 18px;
    background: var(--finance);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
button:hover:not(:disabled) { background: var(--finance-dark); }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: #e9ecef; color: #333; }
button.secondary:hover:not(:disabled) { background: #dfe3e6; }
.error-text { min-height: 18px; margin-top: 14px; color: var(--danger); font-size: 13px; }
.footer-note { margin-top: 24px; text-align: center; color: #91979d; font-size: 11px; }
dialog {
    width: min(440px, calc(100% - 28px));
    border: 0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(0,0,0,.38); }
.dialog-card { padding: 26px; }
.dialog-card h2 { margin: 0 0 8px; font-size: 21px; }
.dialog-card p { margin: 0 0 20px; color: #687078; line-height: 1.45; font-size: 14px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
@media (max-width: 520px) {
    .login-card { padding: 26px 22px; }
    .dialog-actions { grid-template-columns: 1fr; }
}


body.env-test {
    --finance: #16a34a;
    --finance-dark: #15803d;
    background: radial-gradient(circle at 20% 10%, rgba(34,197,94,.16), transparent 34%), linear-gradient(135deg, #f0fdf4 0%, #f7fee7 52%, #dcfce7 100%);
}
body.env-test .login-card { border: 3px solid #22c55e; box-shadow: 0 20px 55px rgba(21,128,61,.18); }
body.env-test input:focus { box-shadow: 0 0 0 3px rgba(22,163,74,.14); }
body.env-prod .login-card { border-top: 3px solid var(--finance); }
