/* ============================================
   heterosis - CONNEXION PAGE CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Saira Condensed', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
   content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /*background-image: url('../assets/logo/LOGO_heterosis_SEUL_FONCE.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: blur(10px);
  z-index: -1;
}

.section-connexion {
    position: relative;
    z-index: 1;
    /*padding: 20px;*/
}

/* ============================================
   SECTION DE CONNEXION
   ============================================ */

.section-connexion {
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 550px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOGO ET TITRE
   ============================================ */

.section-connexion img {
    width: 65px;
    height: auto;
    margin: 0;
    animation: zoomIn 0.6s ease-out;
    display: block;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-connexion h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #003d5c 0%, #00546b 100%);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

/* ============================================
   FORMULAIRE
   ============================================ */

.connexion {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    padding: 30px 40px;
}

.connexion::before {
    content: 'Welcome to HETEROSIS, please login to enter :';
    display: block;
    color: #666;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.6s ease-out forwards;
}

.inputs:nth-child(1) {
    animation-delay: 0.1s;
}

.inputs:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.inputs label {
    color: #333;
    font-weight: 600;
    font-size: 17px;
    text-align: left;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.inputs input {
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 17px;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    color: #333;
}

.inputs input:focus {
    outline: none;
    border-color: #003d5c;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 61, 92, 0.1);
}

.inputs input::placeholder {
    color: #999;
    font-size: 17px;
}

/* ============================================
   BOUTON DE CONNEXION
   ============================================ */

.button {
    padding: 12px 40px;
    background: linear-gradient(135deg, #003d5c 0%, #00546b 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 6px 15px rgba(0, 61, 92, 0.25);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 61, 92, 0.35);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 61, 92, 0.25);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SECTION LIEN
   ============================================ */

.connexion ~ div {
    padding: 15px 40px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   LIEN MOT DE PASSE OUBLIÉ
   ============================================ */

.section-connexion a {
    color: #003d5c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-connexion a:hover {
    color: #00546b;
    text-decoration: underline;
}

/* ============================================
   MESSAGE D'ERREUR
   ============================================ */

.erreur {
    background-color: #fee;
    border-left: 4px solid #f44;
    color: #c33;
    padding: 15px 40px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.erreur.notice-success {
    background-color: #edf8ef;
    border-left-color: #2e8b57;
    color: #247044;
    animation: none;
}

.erreur:not(:empty) {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    body {
        background-size: 600px;
    }

    body::before {
        background-size: 600px;
    }

    .section-connexion {
        border-radius: 8px;
    }

    .section-connexion h1 {
        font-size: 24px;
        padding: 20px 30px;
    }

    .connexion {
        padding: 25px 30px;
    }

    .connexion::before {
        margin-bottom: 15px;
        font-size: 15px;
    }

    .connexion ~ div {
        padding: 12px 30px;
    }

    .inputs input {
        padding: 11px 12px;
        font-size: 14px;
    }

    .button {
        padding: 11px 35px;
        font-size: 15px;
    }

    .erreur {
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
        background-size: 500px;
    }

    body::before {
        background-size: 500px;
    }

    .section-connexion {
        border-radius: 8px;
    }

    .section-connexion h1 {
        font-size: 22px;
        padding: 18px 20px;
        gap: 10px;
    }

    .connexion {
        padding: 20px;
        gap: 18px;
    }

    .connexion::before {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .connexion ~ div {
        padding: 10px 20px;
    }

    .inputs input {
        padding: 10px 10px;
        font-size: 13px;
    }

    .inputs label {
        font-size: 13px;
    }

    .button {
        padding: 10px 30px;
        font-size: 14px;
        letter-spacing: 0.3px;
    }

    .erreur {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.div-mailto {
    margin-top: 30px;
    text-align: center;
}

.div-mailto a {
    font-size: 17px;
    text-decoration: underline;
}

.section-connexion .div-by {
    margin: 10px  auto 10px auto;
    font-size: 14px;
    color: #666;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;    
    justify-content: center;
    width: 15%;
}

.section-connexion .div-by .p-by {
    margin: 0;
    padding: 0;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: var(--color-primary);
}

.section-connexion .div-by img.logo-by {
    width: 40px;
    height: auto;
}

.div-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.div-logo .p-logo {
  margin: 0px;
  font-family: "Fredoka", sans-serif;
 font-weight: 700;
font-size: 39px;
  color: var(--color-primary);

}
