@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
    --main-button-color: #34495e;
}      
* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
*:focus {
    outline-width: 0;
}
html,body {
    background-color: #efefef;
    font-size: 15px;
}
a {
    color: #a3a3a3;
    text-decoration: none;
}
.green-validation {
    color: green !important;
}
#page-content{
    display: flex;
    justify-content: center;
    height: 100vh;
    align-items: center;
    padding: 20px 0;
}

form{
    display: flex;
    flex-direction: column;
}

.connexion-info{
    padding: 10px;
    border: 0;
    width: 100%;
    border-bottom: 1px solid #7f8c8d;
    margin: 10px 0;
}
.connexion-info.password{
    margin: 0;
    padding-right: 20px;
}
.password-container{
    width: 100%;
    margin: 10px 0;
    position: relative;
}
i.la.la-eye.show-password {
    font-size: 15px;
    margin-bottom: -5px;
    cursor: pointer;
}
.connexion-info:focus-visible{
    outline:0;
}
.send-info{
    margin: 1em auto 0em auto;
    padding: 1em;
    border-radius: 3px;
    color: white;
    box-shadow: 0px 5px 7px rgb(71 80 57 / 13%);
    cursor: pointer;
    font-weight: bold;
    border: 0;
}

.send-info.connexion[disabled]{
    color: #7f8c8d;
    background-color: #e4e4e4;
    border: 1px solid #e4e4e4;
    cursor:default;
}
.send-info.connexion[disabled]:hover{
    color: #7f8c8d;
    background-color: #e4e4e4;
    border: 1px solid #e4e4e4;
    cursor:default;
}
.send-info.connexion:hover{
    color: var(--main-button-color);
    background-color: white;
}
.send-info.connexion{
    background-color: var(--main-button-color);
    border: 1px solid var(--main-button-color);
    font-size: 1em;
    margin-top: 2em;
}
.send-info.inscription{
    background-color: #3498db;
    border: 1px solid #3498db;
}
.connexion-title{
    margin-bottom: 1em;
    letter-spacing: 1px;
    color: var(--main-button-color);
    font-size: 1.5em;
}


.card{
    display: flex;
    box-shadow: 0px 4px 30px rgba(40, 44, 58, 0.10);
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    padding: 2em;
    margin-top: -40px;
}
.swap-button {
    font-size: 12px;
    margin-top: 14px;
    color: #515190;
    cursor: pointer;
}
.connexion-panel {
    background-color: var(--main-button-color);
    text-align: center;
    transition: all 1s cubic-bezier(0.82, 0.09, 1, 1);
    margin-left: 340px;
}

.inscription-card{
    margin-left: 340px;
}

.forgotten-popup{
    position: relative;
    background-color: white;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 4px 30px rgb(22 33 74 / 10%);
    border-radius: 4px;
}
.close-icon p{
    width: 30px;
    height: 30px;
    font-size: 1.4em;
    text-align: center;
    border:1px solid white;
    border-radius:3px;
    cursor:pointer;
}
.close-icon{
    position: absolute;
    right: 10px;
    top: 10px;
}
.close-icon p:hover{
    border:1px solid var(--main-button-color);
    color:var(--main-button-color);
}
.forgotten-title{
    margin: 1em;
    text-align: center;
    font-weight: 500;
}
.forgotten-desc{
    margin: 1em;
    text-align: center;
    font-weight: 300;
}
.forgotten-form{
    margin:0em 2em;
    display: flex;
    align-items: center;
}
.forgotten-icon{
    transform: scale(3.5);
    margin: 30px 0 0 0;
}
.icon-container{
    text-align: center;
}
.icon-container i{
    margin: 1em;
    transform: scale(-1,1) scale(3);
}
.send-link{
    background-color: var(--main-button-color);
    border: 1px solid var(--main-button-color);
    margin-top: 20px;
    width: 100%;
}
.send-link:hover{
    color: var(--main-button-color);
    background-color: white;
}
.forgotten-message {
    font-weight: 300;
    text-align: center;
    padding: 0.5em 1em;
    margin: 1.5em 1em;
    border-radius: 4px;
}
.forgotten-password{
    font-size: 12px;
    margin-top: 1.2em;
    color: #a3a3a3;
    cursor: pointer;
}
.email-recup{
    width: 100%;
}
.password-caracteristics {
    margin-top: 15px;
    color: #7f8c8d;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
}
#connexion-form i {
    font-size: 1.2em;
}
#connexion-form i.las.la-check-circle {
    color: #27ae60;
}
#connexion-form i.las.la-times-circle {
    color: #7f8c8d;
}
input{ /*   Disable specials appearance through safari (inputs, submit buttons..)*/
    -webkit-appearance: none;
    outline-width: 0;
    border-radius: 0;
    font-size: 16px;
}
.form-group {
    width: 100%;
}

.modal-info-result {
    margin-bottom: 1em;
    background-color: white;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0px 4px 30px rgb(22 33 74 / 10%);
    display:none;
    text-align: center;
    
}
.modal-info-result.fail{
    background-color: #efa098;
    display: block;
}
.modal-info-container i {
    margin-right: 0.5em;
    font-size: 2em;
}
.modal-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-match {
    color: #7f8c8d;
    text-align: left;
    margin-top: 0.5em;
}
.password-match i {
    margin-right:5px;
    font-size:15px;
}

/* (le select natif .apps-Name a été remplacé par un custom dropdown) */
.single-info {
    padding: 1em 2em;
    /*background-color: white;*/
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 500px;
    text-align: center;
}
.single-info i {
    font-size: 2em;
    margin-bottom: 0.5em;
}
.info-success{
    background-color: #ace3c3;;
    margin-bottom:1em;
}
.info-fail{
    background-color: #eb9d95;
    padding: 1em;
    border-radius: 5px;
    text-align: center;
}
/* Remove square around inputs*/
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}
.errorTxt {
    color: #e70000;
    font-size: 0.8em;
    text-align: left;
}
label.error {
    display: block;
}
.valid-info{
    background-color: #bbe8c0;
    padding: 1em;
    border-radius: 5px;
    text-align: center;
}
.info-success{
    background-color: #bbe8c0;
    padding: 1em;
    border-radius: 5px;
    text-align: center;
}
/* ── Champs supplémentaires — register.php ──────────────────────────────── */

/* Groupe de champ (label + contrôle) */
.reg-field-group {
    width: 100%;
    text-align: left;
    margin-top: 1.2em;
}

/* Label de section */
.reg-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #7f8c8d;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.reg-label i {
    margin-right: 4px;
}

/* Note d'aide sous un champ */
.reg-note {
    font-size: 11px;
    color: #a0a0a0;
    margin-top: 4px;
}

/* ── Custom select (fuseau + application) ────────────────────────────────── */
/* Le dropdown est en position:fixed (positionné par JS) afin d'échapper      */
/* à tout overflow:hidden sur les éléments parents (ex: .card).               */

.reg-cs-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Bouton déclencheur */
.reg-cs-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    color: #34495e;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s;
    box-sizing: border-box;
}

.reg-cs-toggle:hover,
.reg-cs-wrap.open .reg-cs-toggle {
    border-color: #34495e;
}

.reg-cs-toggle span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Couleur atténuée quand rien n'est sélectionné */
.reg-cs-toggle .reg-cs-placeholder {
    color: #a0aab4;
}

/* Flèche rotative */
.reg-cs-arrow {
    font-size: 12px;
    transition: transform .2s;
    flex-shrink: 0;
}

.reg-cs-wrap.open .reg-cs-arrow {
    transform: rotate(180deg);
}

/* Panneau déroulant — position:fixed, dimensionné par JS */
.reg-cs-dropdown {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    display: none;
    flex-direction: column;
    max-height: 260px;
    box-sizing: border-box;
}

/* Champ de recherche dans le dropdown */
.reg-cs-search {
    flex-shrink: 0;
    border: none;
    border-bottom: 1px solid #ecf0f1;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    background: #fafafa;
    border-radius: 4px 4px 0 0;
    font-family: inherit;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 100%;
}

/* Zone scrollable des options */
.reg-cs-options {
    flex: 1;
    overflow-y: auto;
}

/* Option individuelle */
.reg-cs-option {
    padding: 8px 14px;
    font-size: 13px;
    color: #34495e;
    cursor: pointer;
    transition: background .1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-cs-option:hover {
    background: #ecf0f1;
}

.reg-cs-option.selected {
    background: #d5e8f3;
    font-weight: 500;
}

/* Aucun résultat */
.reg-cs-empty {
    padding: 10px 14px;
    font-size: 13px;
    color: #a0a0a0;
    font-style: italic;
}

/* ── Cases à cocher Environnements ─────────────────────────────────────── */

.reg-envs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Conteneur label + checkbox */
.reg-env-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #34495e;
    font-weight: 500;
    user-select: none;
}

.reg-env-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #34495e;
    cursor: pointer;
    border-radius: 3px;
    flex-shrink: 0;
    -webkit-appearance: checkbox; /* réactive l'apparence native des checkboxes */
    appearance: checkbox;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
/*      MOBILE RESPONSIVE    */
@media screen and (max-width : 700px){
    #page-content{ 
        height: 100%;
    }
    .card{
        margin-top: 0px;
    }
}
@media screen and (max-width : 400px){
    html,body{
        background-color: #FFFFFF;
    }
    .card, .forgotten-popup {
        box-shadow: none;
    }
}