:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0f172a; }
.login-clean-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-clean-card { width: min(100%, 430px); padding: 32px; border: 1px solid #334155; border-radius: 12px; background: #111827; box-shadow: 0 20px 50px rgb(0 0 0 / 25%); }
.login-clean-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.sindg-brand-logo-light { display: none; }
.sindg-brand-logo-dark { display: block; max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.d-none { display: none; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.input-group { display: flex; }
.form-control { width: 100%; min-width: 0; padding: 11px 12px; color: #f8fafc; background: #0f172a; border: 1px solid #475569; border-radius: 7px 0 0 7px; font: inherit; }
.form-control:focus { outline: 2px solid #f97316; outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.input-group .btn { border-color: #475569; border-left: 0; border-radius: 0 7px 7px 0; color: #cbd5e1; background: #1e293b; }
.btn-primary { color: #fff; background: #f97316; }
.btn-secondary { color: #e2e8f0; background: #334155; }
.btn:disabled { opacity: .65; cursor: wait; }
.w-100 { width: 100%; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.text-center { text-align: center; }
.small { font-size: 13px; }
.link-secondary { color: #cbd5e1; }
.login-clean-message { color: #cbd5e1; }
.alert { padding: 12px 14px; border-radius: 7px; }
.alert-danger { color: #fecaca; background: #450a0a; border: 1px solid #991b1b; }
.toast-container { position: fixed; top: 16px; right: 16px; z-index: 1000; }
.toast { display: none; max-width: min(380px, calc(100vw - 32px)); padding: 12px 42px 12px 16px; border-radius: 8px; color: #fff; background: #991b1b; box-shadow: 0 12px 30px rgb(0 0 0 / 30%); position: relative; }
.toast.is-visible { display: block; }
.toast.is-success { background: #166534; }
.toast .btn-close { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; }
.toast .btn-close::before { content: '×'; font-size: 24px; line-height: 1; }

@media (prefers-color-scheme: light) {
    :root, body { background: #f1f5f9; color: #111827; }
    .login-clean-card { background: #fff; border-color: #e2e8f0; }
    .sindg-brand-logo-light { display: block; max-width: 100%; height: auto; }
    .sindg-brand-logo-dark { display: none; }
    .form-control { color: #111827; background: #fff; border-color: #cbd5e1; }
    .input-group .btn { color: #334155; background: #f8fafc; border-color: #cbd5e1; }
    .link-secondary { color: #475569; }
    .login-clean-message { color: #374151; }
}
