.pwd-section {
    background: var(--surface, #1a2236);
    border: 1px solid var(--border, #2a3656);
    padding: 1.2rem;
    margin-top: 1.5rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px),
                      calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.pwd-section h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rust, #9b3d2e);
    margin-bottom: 0.5rem;
}
.pwd-section h2::before { content: '◆ '; }
.pwd-section .hint {
    font-size: 0.8rem;
    color: var(--text-dim, #9aa3b8);
    margin-bottom: 1rem;
}
.pwd-form { display: flex; flex-direction: column; gap: 0.8rem; }
.pwd-form label {
    display: flex; flex-direction: column; gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-dim, #9aa3b8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.pwd-form input {
    background: var(--surface-dark, #0e1525);
    border: 1px solid var(--border, #2a3656);
    color: var(--text, #f4f1e8);
    padding: 0.6rem 0.8rem;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.95rem;
}
.pwd-form input:focus {
    outline: none;
    border-color: var(--rust, #9b3d2e);
}
.pwd-form .actions-bar { margin-top: 0.5rem; }
.pwd-status {
    font-size: 0.85rem;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    color: var(--text-dim, #9aa3b8);
    min-height: 1.2em;
}
.pwd-status.ok  { color: var(--ok, #7fb069); }
.pwd-status.err { color: var(--danger, #c14545); }

/* === Modal de confirmation et affichage du mot de passe temporaire === */
.pwd-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 15, 30, 0.7);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.pwd-modal {
    background: var(--surface, #1a2236);
    border: 2px solid var(--border-hi, #3d4d75);
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px),
                      calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.pwd-modal h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rust, #9b3d2e);
    margin-bottom: 0.8rem;
}
.pwd-modal h3::before { content: '◆ '; }
.pwd-modal p {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    color: var(--text-dim, #9aa3b8);
}
.pwd-modal .pwd-display {
    background: var(--surface-dark, #0e1525);
    border: 1px solid var(--border-hi, #3d4d75);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text, #f4f1e8);
    user-select: all;
}
.pwd-modal .actions-bar {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1rem;
}
.pwd-modal .copied-hint {
    font-size: 0.78rem;
    color: var(--ok, #7fb069);
    text-align: center;
    height: 1.2em;
    margin-top: -0.5rem;
}
