/* ==========================================
   UNIVERSITE ANDRE SALIFOU
   Interface de connexion - Orange et vert
   ========================================== */

:root {
    --vert: #006341;
    --vert-fonce: #003f2b;
    --orange: #ff8200;
    --blanc: #ffffff;
    --texte: #183b30;
    --gris: #75858a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    background: #f6f8f4;
    color: var(--texte);
}

.page-connexion {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Zone principale */

.contenu {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: calc(100vh - 62px);

    /* Le portail couvre toute la page */
    background-image: url("../assets/dist/img/porteil_uas2.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================
   PARTIE GAUCHE : PORTAIL ET PRESENTATION
   ========================================== */

.presentation {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 45px 5.5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image: transparent;
    background-size: cover;
    background-position: center;
    color: white;
}

.contenu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(0, 65, 43, 0.65) 0%,
            rgba(0, 65, 43, 0.35) 48%,
            rgba(255, 130, 0, 0.12) 100%);
}

.presentation,
.zone-formulaire {
    position: relative;
    z-index: 1;
}
.identite {
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    width: 100px;
    height: 100px;
    padding: 0;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nom-universite h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.5vw, 37px);
    line-height: 1.13;
    color: white;
    letter-spacing: 0.5px;
}

.nom-universite p {
    margin-top: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nom-universite p span {
    width: 30px;
    height: 3px;
    background: var(--orange);
}

/* Message principal */

.message {
    margin-top: 65px;
    max-width: 650px;
}

.message h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3.2vw, 45px);
    line-height: 1.2;
    font-weight: 700;
}

.message h2 strong {
    color: #ff9b2f;
}

.slogan {
    margin-top: 20px;
    font-size: 21px;
    line-height: 1.6;
    font-style: italic;
    color: #fff9ec;
}

/* Atouts de l'université */

.atouts {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.atout {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icone {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orange);
    border-radius: 50%;
    background: rgba(0, 72, 47, 0.8);
    color: white;
    font-size: 18px;
}

.atout p {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
}

.separateur {
    height: 38px;
    width: 1px;
    background: rgba(255, 255, 255, 0.55);
}

/* Illustration décorative du diplôme */

.illustration-diplome {
    margin-top: auto;
    padding-top: 35px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
}

.illustration-diplome>i {
    font-size: 76px;
    color: var(--orange);
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.25));
}

.illustration-diplome div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.illustration-diplome p {
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
}

.trait {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--orange);
}

/* ==========================================
   PARTIE DROITE : FORMULAIRE
   ========================================== */

.zone-formulaire {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 7%;
    background:transparent;
}

.carte {
    width: 100%;
    max-width: 510px;
    padding: 36px 38px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e7e9df;
    border-radius: 23px;
    box-shadow: 0 18px 55px rgba(0, 63, 43, 0.11);
    position: relative;
    overflow: hidden;
}

.carte::before {
    display: none;
}

.ornement,
.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--orange);
}

.ornement {
    margin-bottom: 20px;
}

.ornement span,
.signature span {
    width: 42px;
    height: 2px;
    background: var(--orange);
}

.ornement i,
.signature i {
    font-size: 9px;
}

.icone-bienvenue {
    text-align: center;
    font-size: 43px;
    color: var(--vert);
}

.carte h2 {
    margin-top: 8px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 43px;
    color: var(--vert-fonce);
}

.description {
    margin: 12px 0 30px;
    text-align: center;
    color: #667b75;
    line-height: 1.7;
    font-size: 15px;
}

/* Champs de connexion */

.champ {
    display: flex;
    align-items: center;
    min-height: 61px;
    margin-bottom: 18px;
    border: 1px solid #d8e0dc;
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.champ:focus-within {
    border-color: var(--vert);
    box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.09);
}

.champ-icone {
    width: 60px;
    min-height: 59px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vert);
    color: white;
    font-size: 19px;
}

.champ input {
    width: 100%;
    min-width: 0;
    padding: 17px 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--texte);
    font-size: 15px;
}

.champ input::placeholder {
    color: #8999a1;
}

.voir-mot-de-passe {
    padding: 15px;
    border: none;
    background: transparent;
    color: #75858a;
    cursor: pointer;
    font-size: 17px;
}

/* Options du formulaire */

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 23px 0 28px;
    font-size: 13px;
}

.souvenir {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.souvenir input {
    width: 17px;
    height: 17px;
    accent-color: var(--vert);
}

.options a {
    color: var(--vert);
    font-weight: 600;
    text-decoration: none;
}

.options a:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* Bouton de connexion */

.bouton-connexion {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(105deg,
            #006341 0%,
            #37763d 45%,
            #ff8200 100%);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.17);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bouton-connexion:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 99, 65, 0.24);
}

.bouton-connexion:active {
    transform: translateY(0);
}

/* Signature et sécurité */

.signature {
    margin: 30px 0;
}

.signature span {
    flex: 1;
    background: #e2e8e3;
}

.securite {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border-radius: 12px;
    background: #f0f6f0;
}

.securite>i {
    font-size: 29px;
    color: var(--vert);
}

.securite strong {
    display: block;
    font-size: 13px;
    color: var(--vert-fonce);
}

.securite p {
    margin-top: 5px;
    font-size: 12px;
    color: #77877f;
}

/* ==========================================
   PIED DE PAGE
   ========================================== */

.pied-page {
    min-height: 62px;
    padding: 15px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--vert-fonce);
    border-top: 3px solid var(--orange);
    color: white;
    font-size: 12px;
}

.pied-page span {
    letter-spacing: 1px;
    font-size: 10px;
}

/* ==========================================
   RESPONSIVE : TABLETTES ET TELEPHONES
   ========================================== */

@media (max-width: 1050px) {
    .contenu {
        grid-template-columns: 1fr 1fr;
    }

    .presentation {
        padding: 35px 5%;
    }

    .identite {
        gap: 12px;
    }

    .logo {
        width: 78px;
        height: 78px;
    }

    .nom-universite h1 {
        font-size: 24px;
    }

    .nom-universite p {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .atouts {
        gap: 10px;
    }

    .atout {
        gap: 6px;
    }

    .icone {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .atout p {
        font-size: 10px;
    }

    .separateur {
        display: none;
    }

    .carte {
        padding: 30px 23px;
    }

    .zone-formulaire {
        padding: 25px;
    }
}

@media (max-width: 760px) {
    .contenu {
        display: flex;
        flex-direction: column;
    }

    .presentation {
        min-height: 450px;
        padding: 28px 22px 45px;
    }

    .message {
        margin-top: 42px;
    }

    .message h2 {
        font-size: 32px;
    }

    .slogan {
        font-size: 17px;
    }

    .atouts {
        margin-top: 25px;
    }

    .illustration-diplome {
        padding-top: 25px;
    }

    .illustration-diplome>i {
        font-size: 52px;
    }

    .zone-formulaire {
        padding: 30px 18px;
    }

    .carte {
        max-width: 500px;
        padding: 30px 23px;
    }

    .carte h2 {
        font-size: 36px;
    }

    .pied-page {
        flex-direction: column;
        text-align: center;
        padding: 20px 12px;
    }
}

@media (max-width: 400px) {
    .identite {
        align-items: flex-start;
    }

    .logo {
        width: 58px;
        height: 58px;
        padding: 4px;
    }

    .nom-universite h1 {
        font-size: 20px;
    }

    .nom-universite p {
        gap: 5px;
        font-size: 9px;
    }

    .message h2 {
        font-size: 27px;
    }

    .atouts {
        align-items: flex-start;
        flex-direction: column;
    }

    .options {
        align-items: flex-start;
        flex-direction: column;
    }

    .champ-icone {
        width: 48px;
    }
}