/* KDB Manager - pages hors univers (connexion, mot de passe oublié, choix de l'espace) : refonte R1 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
    min-height: 100vh; background: #0E1430; color: #F2F4FA;
    font-family: 'Inter', system-ui, sans-serif;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cx-carte { width: 100%; max-width: 420px; background: #18204A; border: 1px solid rgba(255,255,255,.10); border-radius: 18px; overflow: hidden; }
.cx-carte.cx-large { max-width: 980px; }
.cx-plaque { background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 18px 20px; }
.cx-plaque img { height: 54px; width: auto; display: block; }
.cx-ruban { display: flex; gap: 6px; height: 4px; margin: 6px 20px 0; }
.cx-ruban span { flex: 1; display: flex; border-radius: 2px; overflow: hidden; }
.cx-ruban i { flex: 1; display: block; }
.cx-corps { padding: 26px 28px 28px; }
.cx-titre { text-align: center; margin-bottom: 22px; }
.cx-titre h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.cx-titre p { margin: 4px 0 0; font-size: 13px; color: #A9B1CC; }
.cx-champ { position: relative; margin-bottom: 14px; }
.cx-champ label { display: block; font-size: 12px; font-weight: 600; color: #A9B1CC; margin-bottom: 6px; }
.cx-champ input {
    width: 100%; height: 48px; padding: 0 44px 0 14px; border-radius: 12px;
    background: #0E1430; border: 1px solid rgba(255,255,255,.14); color: #F2F4FA;
    font: 500 15px Inter, system-ui, sans-serif; outline: none;
}
.cx-champ input:focus { border-color: #3CBEF0; }
.cx-champ input::placeholder { color: #7C86A8; }
.cx-oeil { position: absolute; right: 6px; bottom: 2px; width: 44px; height: 44px; border: 0; background: none; color: #A9B1CC; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cx-oeil:hover { color: #F2F4FA; }
.cx-bouton {
    width: 100%; height: 48px; margin-top: 6px; border: 1px solid #3CBEF0; border-radius: 12px;
    background: #3CBEF0; color: #0B1230; font: 700 15px Inter, system-ui, sans-serif; cursor: pointer;
}
.cx-bouton:hover { filter: brightness(1.06); }
.cx-liens { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.cx-liens a, .cx-liens button { color: #7FD6F7; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.cx-liens a:hover, .cx-liens button:hover { color: #FFFFFF; text-decoration: underline; }
.cx-info { font-size: 13px; line-height: 1.5; color: #C9CFE3; background: rgba(60,190,240,.08); border: 1px solid rgba(60,190,240,.25); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.cx-flash { font-size: 14px; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; text-align: center; border: 1px solid; }
.cx-flash.danger { background: rgba(231,76,60,.12); border-color: rgba(231,76,60,.45); color: #FFB4AB; }
.cx-flash.success { background: rgba(46,204,113,.12); border-color: rgba(46,204,113,.4); color: #8FE3B0; }
.cx-flash.warning, .cx-flash.info { background: rgba(255,206,0,.10); border-color: rgba(255,206,0,.4); color: #FFE27A; }
.cx-villes { display: flex; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.cx-villes span { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #A9B1CC; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 4px 10px; }
.cx-etapes { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.cx-etapes i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); display: block; }
.cx-etapes i.actif { width: 24px; background: #3CBEF0; }
.cx-aide { font-size: 12px; color: #A9B1CC; margin: -6px 0 14px; line-height: 1.4; }

/* Choix de l'espace */
.cx-espaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cx-espace { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #0E1430; border: 1px solid rgba(255,255,255,.12); text-decoration: none; color: #F2F4FA; min-height: 150px; }
.cx-espace:hover { border-color: var(--a); }
.cx-espace .cx-drapeau { display: flex; height: 4px; width: 48px; border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.cx-espace .cx-drapeau i { flex: 1; display: block; }
.cx-espace b { font-size: 18px; font-weight: 800; }
.cx-espace small { font-size: 12px; color: #A9B1CC; line-height: 1.4; }
.cx-espace span.cx-aller { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; color: #0B1230; background: var(--a); border-radius: 10px; padding: 8px 14px; }
