.page {
    height: 100vh;
}

.logo-head-container {
    height: 5vh;
    padding-top: 15px;
}

.logo-head-container>center>img {
    min-width: 120px;
    width: 10%;
}

.logo-title {
    max-width: 350px;
    margin-left: -3px;
}

.password-toggle {
    border-radius: 0% 0.375rem 0.375rem 0% !important;
}

.password-toggle:focus {
    color: white;
}

/* Mesures de la maquette Figma (export SVG « Login-Medecins-2FA »), en pixels :
   la taille de base du site est de 14 px, les espacements Bootstrap en rem ne tombent pas juste. */

/* Carte des écrans de l'étape 2 (choix, code, QR code, numéro) : 506 px, contenu 410 px.
   L'écran identifiant + mot de passe garde la carte d'origine (860 px), cf. login.ejs. */
.login-card {
    width: 100%;
    max-width: 506px;
    border: 0;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 5px 0 12px 1px rgba(142, 165, 210, 0.25);
}

.login-card-body {
    padding: 48px 48px 32px;
}

/* En-tête : titre 32 px, logo 240 px, bloc suivant à 163 px du haut de la carte. */
.login-card .login-heading {
    font-size: 32px !important;
    line-height: 40px;
}

.login-card .logo-title {
    max-width: 240px;
}

.login-card .login-logo-wrap {
    padding-bottom: 41px !important;
}

.login-card .btn.w-100 {
    min-height: 39px;
}

@media (max-width: 575.98px) {
    .login-card-body {
        padding: 32px 20px;
    }
}

.twofa-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.twofa-intro {
    margin-bottom: 16px;
    line-height: 18px;
}

.twofa-note {
    margin-top: 16px;
    padding-left: 8px;
    color: #808485;
    line-height: 18px;
}

/* Picto « i » du site (info.svg), teinté au gris de la maquette. */
.twofa-note-icon {
    flex: 0 0 16px;
    height: 16px;
    margin: 1px 8px 0 0;
    background-color: #808485;
    -webkit-mask: url("/static/public/assets/icons/info.svg") center / contain no-repeat;
    mask: url("/static/public/assets/icons/info.svg") center / contain no-repeat;
}

/* Cartes de méthode (écran de choix). */
.method-card {
    position: relative;
    margin-bottom: 8px;
    padding: 15px; /* + 1 px de bordure = 16 px de la maquette */
    cursor: pointer;
    border: 1px solid #ACB2B8;
    border-radius: 8px;
}

.method-card.selected {
    background-color: #F6F7F9;
}

.method-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#method-form .method-card:last-of-type {
    margin-bottom: 16px;
}

.method-card .method-radio {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 16px;
    height: 16px;
    margin: 0;
    border-color: #ACB2B8;
}

.method-card .method-radio:checked {
    border-color: #3283C4;
    background-color: #3283C4;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Même carré que qrcode-icon.svg : 32 px, fond #E2EAF1, rayon 4. */
.method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #E2EAF1;
}

.method-icon,
.method-icon-img {
    margin-bottom: 8px;
}

.method-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.method-card > span:last-child {
    line-height: 18px;
}

.badge-reco {
    align-self: flex-start;
    height: 26px;
    margin-bottom: 8px;
    padding: 0 14px;
    border: 1px solid #3283C4;
    border-radius: 13px;
    background-color: #E2EAF1;
    line-height: 24px;
}

/* OX-1146 — choix du destinataire du code (maquette 4a, 4c, 5a, 5c). */
.recipient-field {
    position: relative;
}

.recipient-select {
    height: 39px;
    border-color: #ACB2B8;
}

/* Badge « Par défaut » posé dans le champ, avant le chevron de la liste. */
.recipient-badge {
    position: absolute;
    top: 50%;
    right: 40px;
    height: 26px;
    padding: 0 12px;
    border: 1px solid #3283C4;
    border-radius: 13px;
    background-color: #E2EAF1;
    color: #1E5F94;
    line-height: 24px;
    pointer-events: none;
    transform: translateY(-50%);
}

/* Encadré « Important – à lire avant de valider » : bleu de la charte, ni rouge ni orange. */
.recipient-important {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #3283C4;
    border-radius: 8px;
    background-color: #E2EAF1;
    color: #1E5F94;
    line-height: 18px;
}

.recipient-important-icon {
    flex: 0 0 20px;
    height: 20px;
    margin: 0 12px 0 0;
    background-color: #3283C4;
    -webkit-mask: url("/static/public/assets/icons/info.svg") center / contain no-repeat;
    mask: url("/static/public/assets/icons/info.svg") center / contain no-repeat;
}

/* OX-1149 — choix du profil (maquettes 7a, 8a) : largeur des écrans de l'étape 2, carte cochée sur
   fond gris sans script (login-2fa.js n'est pas chargé sur ces pages). */
.profil-choix {
    max-width: 410px;
}

.profil-card:has(.method-radio:checked) {
    background-color: #F6F7F9;
}

/* « Se souvenir de cet appareil » : case de 20 px au lieu de 14, libellé en gras, cliquable sur
   tout le texte. Sans encadré, aligné à gauche sur les cases du code. */
.remember-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    cursor: pointer;
}

.remember-card .remember-device {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    cursor: pointer;
    border-color: #ACB2B8;
}

.remember-card .remember-device:checked {
    border-color: #3283C4;
    background-color: #3283C4;
}

.remember-title {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.remember-text {
    display: block;
    line-height: 18px;
}

.remember-note {
    display: flex;
    margin-top: 8px;
    color: #808485;
    line-height: 18px;
}

.resend-link {
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.resend-link.disabled {
    color: inherit;
    opacity: 0.6;
    pointer-events: none;
}

.otp-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: 3rem;
    height: 3rem;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.otp-qr {
    max-width: 160px;
    image-rendering: pixelated;
}

.otp-steps li {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.otp-steps li + li {
    border-top: 1px solid #dee2e6;
}

.otp-step-num {
    flex: 0 0 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #e3e8ef;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5rem;
}

