/* ===============================
   RESET LOGIN (ANTI THEME)
=============================== */
/* Fix scroll horizontal */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.login-page {
    min-height: 100vh;
    background: #0e0e0e; /* fallback */
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif;
}

html {
    background: #0e0e0e;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0e0e0e; /* noir charbon */
}

/* ON TUE LE FOND DU THEME */
.frame,
#frame,
#wrapper,
#content,
#main {
    background: transparent !important;
}
/* ===============================
   BACKGROUND
=============================== */
body.login-page {
    margin: 0;
    min-height: 100vh;
    background: #fff;
}

/* particles */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url("/images/background_login.png") center center / cover no-repeat fixed;
}
/* ===============================
   LOGO
=============================== */
.login-logo {
    text-align: center;
    margin-top: 15px;
    margin-bottom: -20px;
    position: relative;
    z-index: 2;
}

.login-logo img {
    max-width: 620px;
}

/* ===============================
   DROP ANIMATION
=============================== */
.login-drop {
    opacity: 0;
    transform: translateY(-40px);
}

.login-drop.active {
    animation: loginDrop 1s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes loginDrop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   LOGIN BOX (LE COEUR)
=============================== */
#login-box {
    width: 480px;
    min-height: 500px;
    margin: 60px auto 100px;
    padding: 30px 30px 40px;
    background: rgba(180,180,180,0.65);
    border-radius: 10px;
    border: 3px solid #4a4a4a;
    border-top-width: 28px;
    box-shadow:
    inset 0 0 25px rgba(0,0,0,0.45),
    0 0 90px rgba(0,0,0,0.9);
    text-align: center;
    position: relative;
    z-index: 2;
}

.cf-turnstile {
	width: 300px;
	min-height: 58px;  
	text-align: center;
	background: linear-gradient(#3a3a3a, #2a2a2a);
	border-color: #333;
	border: 2px solid #646046;
}

.cf-turnstile,
div[data-cf-beacon],
div[class*="cf-challenge"] {
    margin: auto;
}

.cf-success {
    display: none !important;
}

#login-box input[type="text"],
#login-box input[type="password"] {
    background: linear-gradient(#3a3a3a, #2a2a2a);
    border-color: #333;
}

#login-box input[type="text"]:hover,
#login-box input[type="password"]:hover {
    background: linear-gradient(#3a3a3a, #2a2a2a);
    border-color: #333;
}
/* SUPPRIME LE BLEU FIREFOX (focus / hover) */
input:focus,
button:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Firefox spécifique */
input::-moz-focus-inner,
button::-moz-focus-inner {
    border: 0;
}

/* évite le glow bleu sur hover */
input:hover,
button:hover {
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(60,60,60,0.85) inset !important;
    -webkit-text-fill-color: #eaeaea !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ===============================
   TITRE
=============================== */
.textebienvenue {
    font-family: Papyrus;
    font-size: 24px;
    margin-bottom: 33px;
    color: #000;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* ===============================
   INPUTS
=============================== */
#login-box input[type="text"],
#login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    background: rgba(60,60,60,0.85);
    border: 2px solid #646046;
    color: #eaeaea;
    font-size: 15px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

/* ===============================
   OPTIONS
=============================== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
	min-width: 470px;
    margin: 20px 0 40px;
}

#login-box {
    box-shadow:
        inset 0 0 25px rgba(0,0,0,0.45),
        0 0 60px rgba(0,0,0,0.8),
        0 0 120px rgba(0,0,0,0.4);
}
/* Souviens-toi de moi */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember input {
    display: none;
}

.remember .element::before {
    content: "\f096";
    font-family: FontAwesome;
    font-size: 19px;
}

.remember input:checked + .element::before {
    content: "\f046";
    color: #2ecc71;
}

.remember:hover .element::before {
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
}


.rmb {
    font-size: 14px;
    color: #444;
}

.fav-link {
    display: block;
    margin-right: 12%;   /* ajuste ici */
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.fav-link i {
    color: red;
}

.signup-field {
    margin: 12px 0;
}

.signup-field select,
.signup-field input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(60,60,60,0.85);
    border: 2px solid #464d64;
    color: #eaeaea;
    border-radius: 6px;
}
/* ===============================
   BOUTON
=============================== */
.btn1 {
    width: 80%;
    height: 48px;
    font-size: 16px;
    cursor: pointer;
    color: #eee;
    background: linear-gradient(#948366, #574D3E);
    border: 1px solid #111;
    border-radius: 6px;
    box-shadow:
        inset 0 0 8px rgba(255,255,255,0.1),
        0 0 15px rgba(0,0,0,0.9);
}

.btn1:hover {
    box-shadow:
    inset 0 0 8px rgba(255,255,255,1.0),
    0 0 15px rgba(5,5,5,5.5);
	transform: translateY(-1px);
}

/* ===============================
   FOOTER
=============================== */
.login-footer {
    margin-top: 25px;
    font-size: 16px;
}

.login-footer a {
    color: #333;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}
/* ===============================
   LOGIN ERROR MESSAGE
=============================== */
.login-error {
    margin: 15px auto 10px;
    padding: 10px 14px;
    max-width: 420px;
    background: rgba(120, 0, 0, 0.15);
    border: 1px solid rgba(180, 40, 40, 0.6);
    border-radius: 6px;
    color: #EDEFF0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px rgba(180, 40, 40, 0.35);
}

.login-error {
    margin: 15px auto 10px;
    padding: 10px 14px;
    max-width: 420px;
    background: rgba(120, 0, 0, 0.15);
    border: 1px solid rgba(180, 40, 40, 0.6);
    border-radius: 6px;
    color: #EDEFF0;
    font-size: 15px;
    display: flex;              /* 👈 clé */
    align-items: center;        /* 👈 centre vertical */
    gap: 10px;                  /* 👈 espace étoile ↔ texte */
    box-shadow: 0 0 12px rgba(180, 40, 40, 0.35);
}

/* étoile / icône */
.login-error .error-icon {
    color: #d15b67;
    font-size: 22px;
    line-height: 1;             /* 👈 empêche le décalage vertical */
    flex-shrink: 0;             /* 👈 ne se compresse jamais */
    text-shadow: 0 0 6px rgba(209, 91, 103, 0.8);
}

/* texte */
.login-error .error-text {
    line-height: 1.4;
}
.password-wrap {
    position: relative;
    display: inline-block;
}

.password-wrap {
    position: relative;
    width: 280px;
    display: inline-block;
}

.password-wrap input {
    width: 100% !important;
    padding-right: 70px;   /* réserve la place */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 42px;           /* œil collé au bord */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    transition: color .2s;
    z-index: 20;
}

.toggle-password:hover {
    color: #d15b67;
}

.toggle-password.active {
    color: #d15b67;
    text-shadow: 0 0 6px rgba(209, 91, 103, 0.6);
}

/* Contrat d'inscription */
.contract-text {
    width: 100%;
    height: 110px;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(40,40,40,0.9);
    border: 2px solid rgba(0,0,0,0.6);
    border-radius: 8px;
    color: #F0F8FF;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}

.contract-warning {
    margin-top: 8px;
    text-align: center;
    color: #222;
    font-size: 14px;
}

.contract-warning .required {
    color: #d15b67;
    margin-right: 4px;
}

/* ===============================
   RADIO LOGIN
=============================== */
.login-radio-box{
    width:100%;
    margin:20px auto 0;
    padding:14px;
    background:rgba(25,25,25,.35);
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    box-shadow:
        inset 0 0 15px rgba(0,0,0,.45),
        0 0 18px rgba(0,0,0,.20);
}

.login-radio-title{
    margin-bottom:10px;
    font-size:17px;
    color:#8F8F8D;
    font-weight:bold;
    text-align:center;
    text-shadow:
        0 1px 1px #fff,
        0 0 6px rgba(0,0,0,.65);
}

.login-radio-box iframe{
    border-radius:8px;
    overflow:hidden;
}