/* ============================================================
   PAGE DE CONNEXION
   Identité visuelle basée sur le back-office
   ============================================================ */

:root {
    --wh: #ffffff;
    --navy: #101828;
    --grey: #f7f7f7;
    --hov: #e4e7ec;

    --acc: #34d16c;
    --accd: #1fa653;
    --accl: #e9faf0;

    --ink: #101828;
    --mut: rgba(16, 24, 40, .68);

    --line: #e0e4ea;
    --line2: #cdd3dc;

    --err: #d92d20;

    --shadow: 0 20px 60px rgba(16, 24, 40, .10);
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--wh);
    color: var(--ink);

    font-family:
        "Google Sans",
        "Google Sans Flex",
        "Product Sans",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;

    font-size: 15px;
}


/* ============================================================
   PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
}


/* ============================================================
   SECTION GAUCHE
   ============================================================ */

.login-visual {
    position: relative;

    width: 50%;
    min-height: 100vh;

    background: var(--navy);
    color: var(--wh);

    overflow: hidden;

    display: flex;
    align-items: center;
}


.visual-content {
    position: relative;
    z-index: 2;

    width: min(620px, 100%);

    margin: auto;

    padding: 60px 70px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   LOGO
   ============================================================ */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 18px;
    font-weight: 700;
}

.brand-logo {
    width: 38px;
    height: 38px;

    border-radius: 11px;

    display: grid;
    place-items: center;

    background: var(--acc);
    color: var(--navy);

    font-size: 17px;
    font-weight: 800;

    box-shadow: 0 8px 25px rgba(52, 209, 108, .20);
}


/* ============================================================
   CONTENU VISUEL
   ============================================================ */

.visual-main {
    margin: auto 0;
    max-width: 510px;
}


.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;

    background: rgba(255, 255, 255, .06);

    color: rgba(255, 255, 255, .78);

    font-size: 13px;
    font-weight: 500;
}


.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--acc);
}


.visual-main h1 {
    margin: 22px 0 18px;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.04;

    letter-spacing: -2px;

    font-weight: 700;
}


.visual-main h1 span {
    color: var(--acc);
}


.visual-main > p {
    margin: 0;

    max-width: 470px;

    color: rgba(255, 255, 255, .66);

    font-size: 16px;
    line-height: 1.7;
}


/* ============================================================
   FEATURES
   ============================================================ */

.visual-features {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 38px;
}


.feature {
    display: flex;
    align-items: center;
    gap: 13px;
}


.feature-icon {
    width: 34px;
    height: 34px;

    flex: none;

    border-radius: 9px;

    display: grid;
    place-items: center;

    background: rgba(52, 209, 108, .12);

    color: var(--acc);

    font-size: 15px;
    font-weight: 700;
}


.feature strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
}


.feature span {
    display: block;

    color: rgba(255, 255, 255, .52);

    font-size: 13px;
}


/* ============================================================
   FOOTER GAUCHE
   ============================================================ */

.visual-footer {
    color: rgba(255, 255, 255, .35);

    font-size: 12px;
}


/* ============================================================
   DÉCORATIONS
   ============================================================ */

.decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.decoration-one {
    width: 420px;
    height: 420px;

    right: -220px;
    top: -160px;

    border: 1px solid rgba(52, 209, 108, .13);
}


.decoration-two {
    width: 300px;
    height: 300px;

    left: -180px;
    bottom: -170px;

    border: 1px solid rgba(255, 255, 255, .07);
}


/* ============================================================
   SECTION FORMULAIRE
   ============================================================ */

.login-form-section {
    width: 50%;
    min-height: 100vh;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
}


.login-card {
    width: min(430px, 100%);
}


/* ============================================================
   HEADER FORMULAIRE
   ============================================================ */

.form-header {
    margin-bottom: 32px;
}


.form-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 12px;

    background: var(--accl);

    color: var(--accd);
}


.form-header h2 {
    margin: 0 0 7px;

    font-size: 30px;
    line-height: 1.2;

    letter-spacing: -.7px;

    font-weight: 650;
}


.form-header p {
    margin: 0;

    color: var(--mut);

    font-size: 14px;
}


/* ============================================================
   ALERT
   ============================================================ */

.form-alert {
    display: none;

    align-items: center;
    gap: 9px;

    padding: 11px 13px;

    margin-bottom: 20px;

    border: 1px solid #fecdca;

    border-radius: 10px;

    background: #fef3f2;

    color: var(--err);

    font-size: 13px;
}


.form-alert.show {
    display: flex;
}


.alert-icon {
    width: 19px;
    height: 19px;

    flex: none;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--err);
    color: white;

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   FORM
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--ink);

    font-size: 14px;
    font-weight: 550;
}


.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.label-row label {
    margin-bottom: 7px;
}


.forgot-password {
    margin-bottom: 7px;

    color: var(--accd);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.forgot-password:hover {
    text-decoration: underline;
}


/* ============================================================
   INPUT
   ============================================================ */

.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #667085;

    pointer-events: none;
}


.input-wrapper input {
    width: 100%;

    height: 48px;

    padding: 0 45px;

    border: 1px solid var(--line2);
    border-radius: 10px;

    outline: none;

    background: #fff;

    color: var(--ink);

    font-size: 14px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.input-wrapper input::placeholder {
    color: #98a2b3;
}


.input-wrapper input:hover {
    border-color: #98a2b3;
}


.input-wrapper input:focus {
    border-color: var(--acc);

    box-shadow: 0 0 0 4px rgba(52, 209, 108, .13);
}


/* ============================================================
   AFFICHER MOT DE PASSE
   ============================================================ */

.password-toggle {
    position: absolute;

    right: 5px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #667085;

    cursor: pointer;

    display: grid;
    place-items: center;
}


.password-toggle:hover {
    background: var(--grey);
    color: var(--ink);
}


/* ============================================================
   REMEMBER
   ============================================================ */

.form-options {
    margin-top: -3px;
    margin-bottom: 22px;
}


.remember {
    display: inline-flex !important;

    align-items: center;

    gap: 9px;

    margin: 0 !important;

    cursor: pointer;

    color: var(--mut) !important;

    font-size: 13px !important;
    font-weight: 400 !important;
}


.remember input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.custom-checkbox {
    width: 17px;
    height: 17px;

    border: 1px solid var(--line2);
    border-radius: 5px;

    background: white;

    transition: .15s;

    position: relative;
}


.remember input:checked + .custom-checkbox {
    background: var(--acc);
    border-color: var(--acc);
}


.remember input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;

    width: 4px;
    height: 8px;

    left: 5px;
    top: 2px;

    border-right: 2px solid white;
    border-bottom: 2px solid white;

    transform: rotate(45deg);
}


/* ============================================================
   BOUTON
   ============================================================ */

.login-button {
    position: relative;

    width: 100%;
    height: 48px;

    border: 1px solid var(--acc);
    border-radius: 10px;

    background: var(--acc);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


.login-button:hover {
    background: var(--accd);

    box-shadow: 0 8px 20px rgba(52, 209, 108, .18);

    transform: translateY(-1px);
}


.login-button:active {
    transform: translateY(0);
}


.login-button:disabled {
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}


.button-arrow {
    transition: transform .18s ease;
}


.login-button:hover .button-arrow {
    transform: translateX(3px);
}


.button-loader {
    display: none;

    animation: rotate .8s linear infinite;
}


.login-button.loading .button-loader {
    display: block;
}


.login-button.loading .button-arrow {
    display: none;
}


.login-button.loading #buttonText {
    opacity: .9;
}


@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   NOTE SÉCURITÉ
   ============================================================ */

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 24px;

    color: #98a2b3;

    font-size: 12px;
}


.security-note svg {
    flex: none;
}


/* ============================================================
   MOBILE BRAND
   ============================================================ */

.mobile-brand {
    display: none;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 950px) {

    .login-visual {
        width: 45%;
    }

    .login-form-section {
        width: 55%;

        padding: 40px;
    }

    .visual-content {
        padding: 50px 45px;
    }

    .visual-main h1 {
        font-size: 42px;
    }

}


@media (max-width: 760px) {

    body {
        overflow-x: hidden;
    }

    .login-page {
        display: block;
    }

    .login-visual {
        display: none;
    }

    .login-form-section {
        width: 100%;
        min-height: 100vh;

        padding: 35px 24px;
    }

    .login-card {
        width: min(430px, 100%);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        margin-bottom: 55px;

        font-size: 18px;
        font-weight: 700;
    }

    .mobile-brand .brand-logo {
        width: 36px;
        height: 36px;
    }

}


@media (max-width: 480px) {

    .login-form-section {
        padding: 25px 18px;
    }

    .mobile-brand {
        margin-bottom: 45px;
    }

    .form-header {
        margin-bottom: 27px;
    }

    .form-header h2 {
        font-size: 27px;
    }

    .form-icon {
        margin-bottom: 16px;
    }

    .label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .forgot-password {
        margin-top: 0;
    }

}