/*
 * StagePoint interactive demo login
 *
 * Served as an external stylesheet so it works with the portal's
 * Content-Security-Policy: style-src 'self' (inline styles are blocked).
 * All page overrides are scoped to .demo-login.
 */

.demo-login .login-panel {
    max-width: 490px;
}

.demo-login .login-brand {
    margin-bottom: 15px;
}

.demo-login .login-card {
    padding: 27px 28px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 14px;
}

.demo-login .login-card-header {
    margin-bottom: 21px;
}

.demo-login .login-card-header h2 {
    margin: 5px 0 6px;
    color: #142e51;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.demo-login .login-card-header p {
    color: #607086;
}

.demo-eyebrow {
    display: inline-block;
    color: #a36b10;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.demo-access {
    padding: 15px;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: linear-gradient(140deg, #f6f8fd, #f1f5fa);
}

.demo-access-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    margin: 0 0 13px;
}

.demo-access-header h3 {
    margin: 0;
    color: #1a375c;
    font-size: .96rem;
    font-weight: 800;
    letter-spacing: -.012em;
}

.demo-access-header p {
    margin: 3px 0 0;
    color: #596c81;
    font-size: .78rem;
    line-height: 1.45;
}

.demo-access-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 5px 8px;
    border: 1px solid #e8d39c;
    border-radius: 5px;
    background: #fff5da;
    color: #815c0f;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: .025em;
}

.demo-role-form {
    display: grid;
    gap: 9px;
}

.demo-role-supervisor {
    --demo-role-accent: #1e4c90;
    --demo-role-tint: #e9f1ff;
}

.demo-role-trusted {
    --demo-role-accent: #946414;
    --demo-role-tint: #fff1d1;
}

.demo-role-warehouse {
    --demo-role-accent: #485c73;
    --demo-role-tint: #edf1f5;
}

.demo-role-button {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    appearance: none;
    border: 1px solid #dae4f0;
    border-left: 4px solid var(--demo-role-accent);
    border-radius: 9px;
    background: #fff;
    color: #233b55;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(23, 44, 75, .035);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}

.demo-role-button:hover {
    border-color: #a8bfdf;
    border-left-color: var(--demo-role-accent);
    background: #fcfdff;
    box-shadow: 0 6px 16px rgba(27, 59, 103, .12);
    transform: translateY(-1px);
}

.demo-role-button:active {
    transform: translateY(0);
}

.demo-role-button:focus-visible {
    outline: 3px solid #7eabd9;
    outline-offset: 3px;
}

.demo-role-button:disabled {
    cursor: not-allowed;
    opacity: .52;
    transform: none;
    box-shadow: none;
}

.demo-role-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--demo-role-tint);
    color: var(--demo-role-accent);
    font-size: 1.03rem;
    font-weight: 850;
    line-height: 1;
}

.demo-role-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.demo-role-copy strong {
    display: block;
    margin-bottom: 3px;
    color: #173c68;
    font-size: .96rem;
    font-weight: 800;
}

.demo-role-copy small {
    display: block;
    color: #607287;
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.35;
}

.demo-role-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #eef3f9;
    color: var(--demo-role-accent);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
}

.demo-practice-note {
    margin: 13px 2px 1px;
    color: #6c7888;
    font-size: .75rem;
    line-height: 1.45;
}

.demo-manual-divider {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 22px 0 19px;
    color: #687b91;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
}

.demo-manual-divider::before,
.demo-manual-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe3ec;
}

.demo-manual-divider span {
    white-space: nowrap;
}

.demo-login .login-form-group {
    margin-bottom: 15px;
}

.demo-login .login-help {
    margin-top: 20px;
}

@media (max-width: 520px) {
    .demo-login .login-card {
        padding: 23px 17px;
    }

    .demo-login .login-card-header h2 {
        font-size: 1.55rem;
    }

    .demo-access {
        padding: 12px;
    }

    .demo-role-button {
        min-height: 70px;
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 340px) {
    .demo-access-header {
        flex-wrap: wrap;
    }

    .demo-role-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .demo-role-button {
        gap: 8px;
    }

    .demo-role-copy small {
        font-size: .7rem;
    }

    .demo-manual-divider {
        gap: 7px;
        letter-spacing: .03em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-role-button {
        transition: none;
    }
}
