/* Connexion administrateur ReadIM — feuille de style autonome. */
:root {
    --readim-blue: #62809B;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #252525;
    font-family: Arial, sans-serif;
}
[hidden] { display: none !important; }
.registration {
    width: 100%;
    max-width: 370px;
    text-align: center;
}

/* Globe et bébé */
.registration-globe, #registration-globe {
    position: relative;
    display: block;
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
}
.registration-globe::before, #registration-globe::before {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(#b0d5ff, #dfb8ff, #ffc3d9, #b2efdf, #b0d5ff);
    animation: registration-globe 8s linear infinite;
}
.registration-globe img, #registration-globe img {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}
.registration-globe img, #registration-globe img,
img[src*="aview-bebe-translucent-v001.webp"] {
    width: 65px !important;
    height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
}
@keyframes registration-globe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Texte */
#registration-text {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}
#registration-text a {
    color: var(--readim-blue);
    font-weight: bold;
    text-decoration: none;
}

/* Formulaire, pseudo et mot de passe */
#registration-form, #registration-fields { width: 100%; margin: 0; }
.registration-field {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
}
.registration-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #252525;
    font: 16px Arial, sans-serif;
}
.registration-field input::placeholder { color: #aaa; }
.registration-field:focus-within { border-color: var(--readim-blue); }
.registration-field.invalid { border-color: #d33; }
.registration-at { margin-right: 8px; color: var(--readim-blue); font-size: 18px; }

/* Boutons */
#registration-next, .registration-choice {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--readim-blue);
    color: #fff;
    font: 16px Arial, sans-serif;
    cursor: pointer;
}
#registration-next { width: 100%; margin-top: 15px; padding: 12px; }
.registration-choice { padding: 12px 20px; }
#registration-next:disabled, .registration-choice:disabled { opacity: .6; cursor: default; }

/* Code et erreurs */
#registration-validation { margin-top: 20px; }
#registration-code { color: var(--readim-blue); font-size: 36px; font-weight: bold; letter-spacing: 8px; }
#registration-validation p { color: #888; font-size: 14px; }
#registration-error { margin: 12px 0 0; color: #d33; font-size: 13px; line-height: 1.5; }

/* Remonter le formulaire de 80 px sur mobile et tablette, sans le sortir du flux. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    body { padding-bottom: 180px; }
}

/* Les champs de connexion restent entièrement éditables après remplissage automatique. */
.registration-field input { flex: 1 1 0%; max-width: 100%; text-indent: 0; text-overflow: clip; }
.registration-field input:-webkit-autofill { -webkit-text-fill-color: #252525; caret-color: #252525; }
