:root {
    /* --bg: #0b1220;
    --overlay: rgba(2, 6, 23, 0.6);
    --card: #ffffff;
    --accent: #0b84ff */
}
    .page {
        min-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, #f6f8fb, #e9eef8)
    }
/* bouton demo */
.btn {
    background: var(--accent);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600
}


/* overlay + popin */
.overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem
}

.overlay.open {
    display: flex
}

.dialog {
    background: var(--card);
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
    padding: 1.25rem;
    transform: translateY(12px);
    opacity: 0;
    transition: all .22s ease
}

.overlay.open .dialog {
    transform: none;
    opacity: 1
}


h2 {
    margin: 0 0 .5rem;
    font-size: 1.125rem
}

p.lead {
    margin: 0 0 1rem;
    color: #445566;
    font-size: .95rem
}


.field {
    display: flex;
    gap: .5rem;
    align-items: center
}

.field input[type="password"],
.field input[type="text"] {
    flex: 1;
    padding: .6rem .75rem;
    border-radius: 8px;
    border: 1px solid #d8e1ef;
    font-size: 1rem
}

.icon-btn {
    background: transparent;
    border: 0;
    padding: .5rem;
    border-radius: 8px;
    cursor: pointer
}


.actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    justify-content: flex-end
}

.btn.secondary {
    background: #eef3ff;
    color: var(--accent)
}


.msg {
    font-size: .9rem;
    color: crimson;
    margin-top: .5rem;
    min-height: 1.1rem
}


/* focus outline for accessibility */
:focus {
    outline: 3px solid rgba(11, 132, 255, .18);
    outline-offset: 3px
}


@media (max-width:480px) {
    .dialog {
        padding: 1rem;
        border-radius: 10px
    }
}