/*
 * Thème de l'année de la page de connexion (login.php, hors du 16 au 31 décembre).
 * Même construction que styles_noel.css. Les !important l'emportent sur les styles en ligne de login.php.
 */
@import url('https://fonts.googleapis.com/css?family=Dancing+Script:700&display=swap');

:root {
    --annee-marine: #0b3a53;
    --annee-turquoise-clair: #3cc3d4;
    --annee-mer: #067b88;
    --annee-bleu: #21609c;
    --annee-rouge: #c0262d;
    --annee-gris-bleu: #4a6b78;
}

body {
    margin: 0;
    overflow: hidden;
    background: var(--annee-mer);
    color: var(--annee-marine);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* ---------- Fond : l'illustration en pleine largeur sous le bandeau, la mer prolongée par la couleur du body ---------- */
div#RP_conteneur_general {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/homePage/fond_normal.jpg");
    background-position: left 37px;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

/* ---------- Bandeau du haut ---------- */
#RP_header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0 auto;
    padding-top: 10px;
    background-color: var(--annee-bleu);
    box-shadow: 0 1px 6px rgba(11, 58, 83, .25);
    color: #fff;
}

.mentionlink_haut,
a.mentionlink_haut {
    padding-right: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

/* ---------- Bloc central, centré un peu au-dessus du milieu ---------- */
#RP_conteneur {
    position: fixed;
    top: 40%;
    left: 0;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
}

#RP_conteneur td {
    width: auto;
}

/* Écran peu haut (téléphone à l'horizontale) : on repart du haut, sous le bandeau */
@media screen and (max-height: 560px) {
    div#RP_conteneur_general {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* relative et non static : le bloc reste peint au-dessus des décors positionnés du fond */
    #RP_conteneur {
        position: relative;
        top: auto;
        padding: 48px 0 16px;
        transform: none;
    }
}

/* Écran très étroit (moins de 340px) : le cadre prend la largeur disponible et le bandeau tient sur une ligne */
@media screen and (max-width: 340px) {
    .identification {
        width: auto !important;
        margin: 0 10px;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .mentionlink_haut,
    a.mentionlink_haut {
        font-size: 12px;
    }
}

/* Titre « Connectez-vous à votre compte » */
.mentionhaut,
#RP_conteneur .mentionhaut {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--annee-marine);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

/* ---------- Cadre de connexion ---------- */
.identification {
    position: relative;
    width: 270px !important;
    padding: 30px 24px 22px !important;
    background: linear-gradient(160deg, rgba(34, 118, 193, .94) 0%, rgba(24, 88, 150, .95) 100%);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(11, 58, 83, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
    color: #fff;
}

/* Libellés « Utilisateur » et « Mot de passe » */
.mentionlink {
    padding-bottom: 6px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .03em;
}

/* Champs : ciblés par id, le champ mot de passe passant en type text quand l'œil est actif */
#logIn_INPUT_USER,
#logIn_INPUT_PWD {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 10px;
    border: 1px solid #b7d3dc;
    border-radius: 8px;
    background: #fff;
    color: var(--annee-marine);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

#logIn_INPUT_USER {
    padding-right: 10px;
}

/* padding-right du mot de passe : laissé à login.php, qui réserve la place de l'œil */

#logIn_INPUT_USER:focus,
#logIn_INPUT_PWD:focus {
    border-color: var(--annee-turquoise-clair);
    box-shadow: 0 0 0 3px rgba(60, 195, 212, .45);
}

.identification .login-mdp-oeil {
    color: var(--annee-gris-bleu);
}

/* Message d'erreur ou de mot de passe modifié : orange clair, lisible sur le bleu du cadre */
.identification .message_ident {
    color: #ffcf7a !important;
    font-weight: bold;
}

/* Bouton « Valider » : aligné à droite, blanc sur le bleu du cadre */
.login-valider {
    min-width: 110px;
    padding: 7px 20px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--annee-bleu);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: background-color .15s, box-shadow .15s;
}

.login-valider:hover {
    background: #eaf4fb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.login-valider:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 195, 212, .55);
}

.login-valider:active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

/* ---------- Messages hors du cadre ---------- */
/* « Bonne journée » : marine manuscrit sous le cadre ; le halo clair l'aide quand il tombe sur la mer */
.text_noel {
    margin-top: 22px;
    color: var(--annee-marine) !important;
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 0 10px rgba(255, 255, 255, .75);
}

/* Blocage de la base (maintenance) : encadré, et rien s'il est vide */
.text_noel.message_bloquage {
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-shadow: none;
}

.text_noel.message_bloquage:not(:empty) {
    display: table;
    margin-bottom: 18px;
    max-width: 80%;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--annee-rouge);
    border-radius: 10px;
    color: var(--annee-rouge) !important;
}

@media screen and (max-width: 780px) {
    .text_noel { font-size: 28px; }
}

@media screen and (max-width: 606px) {
    .text_noel { font-size: 24px; }
    .mentionhaut,
    #RP_conteneur .mentionhaut { font-size: 16px; }
}

#RP_footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 20px;
    color: #fff;
    font-size: 16px;
    text-align: center;
}
