.demo-auth-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f4f6fb;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.demo-auth-panel {
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px -10px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
}

.demo-auth-eyebrow {
    margin: 0 0 8px;
    color: #4338ca;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.demo-auth-panel h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.demo-auth-panel p:not(.demo-auth-eyebrow) {
    margin: 12px 0 0;
    color: #334155;
    line-height: 1.55;
}

.demo-auth-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.demo-auth-field {
    display: grid;
    gap: 6px;
}

.demo-auth-field label {
    color: #0f172a;
    font-size: .82rem;
    font-weight: 700;
}

.demo-auth-field input {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 10px;
    font: inherit;
    outline: none;
}

.demo-auth-field input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.demo-auth-primary {
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 750;
    color: #fff;
    background: #4f46e5;
    cursor: pointer;
}

.demo-auth-primary:hover { background: #4338ca; }
.demo-auth-primary:disabled { opacity: .6; cursor: progress; }

.demo-auth-fineprint {
    margin-top: 4px;
    color: #64748b;
    font-size: .82rem;
}

.demo-auth-message {
    min-height: 22px;
    margin-top: 14px;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.45;
}

.demo-auth-message.error { color: #dc2626; }
.demo-auth-message.success { color: #16a34a; }

@media (max-width: 620px) {
    .demo-auth-panel { padding: 24px; }
}

/* Hide the floating Ask LOMAinsights bar while the demo access gate is visible */
#demo-auth-view:not([hidden]) ~ #ask-flyout,
#demo-auth-view:not([hidden]) ~ #ask-flyout-backdrop {
    display: none;
}
