/* Painel de Desbloqueio — tema claro, ritmo shadcn, sobre o Bootstrap 5.3. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root,
[data-bs-theme="dark"] {
    color-scheme: light;
    --brand: #18181b;
    --brand-strong: #09090b;
    --brand-soft: #f4f4f5;
    --brand-glow: rgba(24, 24, 27, .12);
    --bg-0: #fafafa;
    --bg-1: #fafafa;
    --surface: #ffffff;
    --surface-2: #fafafa;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --txt: #18181b;
    --txt-muted: #71717a;
    --ok: #16a34a;
    --warn: #d97706;
    --bad: #dc2626;
    --info: #0284c7;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 12px 32px -16px rgba(24, 24, 27, .18);
    --shadow-sm: 0 1px 2px rgba(24, 24, 27, .05);
    --bs-body-bg: #fafafa;
    --bs-body-color: #18181b;
    --bs-body-font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --bs-primary: #18181b;
    --bs-primary-rgb: 24, 24, 27;
    --bs-border-color: #e4e4e7;
    --bs-border-radius: 8px;
    --bs-emphasis-color: #18181b;
    --bs-secondary-color: #71717a;
    --bs-tertiary-bg: #f4f4f5;
    --bs-link-color: #18181b;
    --bs-link-hover-color: #3f3f46;
    --bs-btn-close-white-filter: none;
}

html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
    background: #fafafa;
    color: #18181b;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection { background: #e4e4e7; color: #18181b; }

.brand-mark {
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    font-weight: 650; letter-spacing: -.02em; color: #18181b;
}
.brand-dot {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; color: #fff; font-size: 1rem;
    background: #18181b; flex: 0 0 auto;
}

.surface,
.card,
[data-bs-theme="dark"] .card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    color: #18181b;
}
.card .card-header {
    background: transparent;
    border-bottom: 1px solid #e4e4e7;
    font-weight: 600;
}

.auth-wrapper {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 16px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.auth-head { padding: 28px 24px 4px; text-align: center; }
.auth-head .brand-mark { font-size: 1.2rem; }
.auth-head p { color: #71717a; margin: 10px 0 0; font-size: .92rem; }
.auth-body { padding: 22px 24px 26px; }
.auth-foot {
    padding: 14px 16px; text-align: center;
    border-top: 1px solid #e4e4e7;
    color: #71717a; font-size: .78rem;
    background: #fafafa;
}

.form-label { font-weight: 500; font-size: .875rem; color: #18181b; margin-bottom: .4rem; }
.form-control,
.form-select,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #fff;
    border: 1px solid #e4e4e7;
    color: #18181b;
    border-radius: 8px;
    min-height: 44px;
    padding: .55rem .85rem;
    box-shadow: none;
}
.form-control::placeholder { color: #a1a1aa; }
.form-control:focus,
.form-select:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #fff;
    color: #18181b;
    border-color: #a1a1aa;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, .08);
}
.form-control:disabled,
.form-control[readonly],
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly] {
    background: #f4f4f5; color: #71717a;
}
.input-affix { position: relative; }
.input-affix .form-control { padding-right: 46px; }
.input-affix .affix-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #71717a;
    width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
}
.input-affix .affix-btn:hover { color: #18181b; background: #f4f4f5; }
.form-check-input { width: 1.05rem; height: 1.05rem; border-color: #d4d4d8; }
.form-check-input:checked { background-color: #18181b; border-color: #18181b; }
.form-check-label { color: #3f3f46; }

.btn { border-radius: 8px; font-weight: 500; min-height: 40px; }
.btn-brand,
.btn-primary,
[data-bs-theme="dark"] .btn-primary {
    background: #18181b;
    border: 1px solid #18181b;
    color: #fff;
    box-shadow: none;
}
.btn-brand:hover,
.btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:hover { background: #27272a; border-color: #27272a; color: #fff; }
.btn-brand:active { transform: translateY(1px); }
.btn-block, .btn-grid { width: 100%; min-height: 44px; }
.btn-ghost {
    background: #fff; border: 1px solid #e4e4e7; color: #18181b;
}
.btn-ghost:hover { background: #fafafa; color: #18181b; border-color: #d4d4d8; }
.btn-success,
[data-bs-theme="dark"] .btn-success {
    background: #18181b; border: 1px solid #18181b; color: #fff;
}
.btn-success:hover,
[data-bs-theme="dark"] .btn-success:hover { background: #27272a; color: #fff; }

.alert { border-radius: 8px; border: 1px solid transparent; }
.alert-danger,
[data-bs-theme="dark"] .alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success,
[data-bs-theme="dark"] .alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-info,
[data-bs-theme="dark"] .alert-info { background: #f4f4f5; color: #3f3f46; border-color: #e4e4e7; }
.alert-secondary,
.alert-light,
[data-bs-theme="dark"] .alert-secondary,
[data-bs-theme="dark"] .alert-light { background: #fafafa; color: #3f3f46; border-color: #e4e4e7; }
.alert-warning,
[data-bs-theme="dark"] .alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
a { color: #18181b; }
.auth-body a, .card a { text-underline-offset: 3px; }

.app-footer {
    text-align: center; color: #71717a; font-size: .82rem;
    padding: 28px 16px 40px;
}
.app-footer a { color: #18181b; }

.text-secondary { color: #71717a !important; }
.text-danger { color: #b91c1c !important; }
.text-warning { color: #b45309 !important; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { color: #4338ca; }
pre {
    background: #18181b; border: 1px solid #27272a;
    border-radius: 8px; padding: 1rem; overflow-x: auto;
    color: #f4f4f5; font-size: .85rem;
}
pre code { color: inherit; }

.btn-close,
[data-bs-theme="dark"] .btn-close { filter: none !important; opacity: .6; }

@media (max-width: 575.98px) {
    .auth-head { padding: 24px 18px 2px; }
    .auth-body { padding: 18px 16px 22px; }
    .auth-head .brand-mark { font-size: 1.08rem; }
}
