.has-demo-notice {
    --demo-notice-height: 56px;
    padding-top: var(--demo-notice-height);
}
.login-page.has-demo-notice {
    padding-top: calc(var(--demo-notice-height) + 24px);
}
.demo-notice {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: grid;
    place-content: center;
    box-sizing: border-box;
    height: var(--demo-notice-height);
    padding: 8px 16px;
    background: #edf4ef;
    border-bottom: 1px solid #cddbcf;
    color: #2c513b;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}
.has-demo-notice .tactum-sidebar,
.has-demo-notice .tactum-mobile-menu {
    top: var(--demo-notice-height);
}
@media (max-width: 620px) {
    .has-demo-notice { --demo-notice-height: 96px; }
    .login-page.has-demo-notice { padding-top: calc(var(--demo-notice-height) + 16px); }
}
.demo-login-page {
    align-items: center;
}
.demo-login {
    width: min(920px, 100%);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--tactum-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 40px rgba(36, 56, 43, 0.07);
}
.demo-login-header {
    max-width: 620px;
    margin: 0 auto 1.75rem;
    text-align: center;
}
.demo-login-header .login-brand {
    margin-bottom: 0.75rem;
}
.demo-login-eyebrow {
    margin: 0 0 0.6rem;
    color: #4f755d;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.demo-login-header h1 {
    margin: 0;
    color: #15241d;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 650;
    letter-spacing: -0.035em;
}
.demo-login-intro {
    margin: 0.6rem 0 0;
    color: #66736a;
}
.demo-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.demo-role-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 1.1rem;
    border: 1px solid #dce5dd;
    border-radius: 12px;
    background: #fff;
}
.demo-role-card h2 {
    margin: 0;
    color: #263c2e;
    font-size: 1.05rem;
}
.demo-role-card p {
    margin: 0.35rem 0 0;
    color: #66736a;
    font-size: 0.9rem;
    line-height: 1.45;
}
.demo-role-card form {
    margin: 0;
}
.demo-role-card button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #478460, #306b4c);
    color: #fff;
    font-weight: 600;
}
.demo-role-card button:hover {
    background: var(--tactum-green-hover);
}
.demo-role-card button:focus-visible,
.demo-service-link a:focus-visible,
.demo-role-switch button:focus-visible {
    outline: 3px solid #458362;
    outline-offset: 3px;
}
.demo-login-error {
    margin: 0 0 1rem;
    text-align: center;
}
.demo-service-link {
    margin: 1.25rem 0 0;
    text-align: center;
}
.demo-service-link a {
    color: #306b4c;
    font-size: 0.9rem;
    font-weight: 600;
}
.demo-role-switch {
    position: fixed;
    z-index: 10;
    right: 1.25rem;
    bottom: 1.25rem;
    margin: 0;
}
.demo-role-switch button {
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid #cddbcf;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(36, 56, 43, 0.12);
    color: #2e6547;
    font-weight: 600;
}
.demo-role-switch button:hover {
    background: #f2f7f3;
}
@media (max-width: 620px) {
    .demo-login-page {
        padding: 0.8rem;
    }
    .demo-login {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .demo-role-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .demo-role-card {
        min-height: 0;
    }
    .demo-role-switch {
        right: 0.75rem;
        bottom: 0.75rem;
    }
    .demo-role-switch button {
        min-height: 38px;
        padding: 0.55rem 0.8rem;
    }
}
