/* ============================================================
   SOTICAM PRODUCTION
   LOGIN SYSTEM
   ============================================================ */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

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

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        #f3f4f8;

    color: #172033;
}


body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}


/* ============================================================
   CONTENEUR PRINCIPAL
   ============================================================ */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 1.15fr)
        minmax(420px, .85fr);

    position: relative;

    background:
        linear-gradient(
            135deg,
            #f8f9fc 0%,
            #eef0f6 100%
        );

}


/* ============================================================
   PANNEAU GAUCHE
   ============================================================ */

.login-brand {

    position: relative;

    min-height: 100vh;

    padding: 55px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 15% 15%,
            rgba(91, 55, 157, .14),
            transparent 32%
        ),

        radial-gradient(
            circle at 90% 85%,
            rgba(91, 55, 157, .08),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #ffffff 0%,
            #f1f2f7 100%
        );

}


/* ============================================================
   GRILLE DÉCORATIVE
   ============================================================ */

.login-brand::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(91,55,157,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(91,55,157,.035) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;

}


/* ============================================================
   CERCLES DÉCORATIFS
   ============================================================ */

.login-brand::after {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -240px;
    bottom: -240px;

    border-radius: 50%;

    border:
        1px solid rgba(91,55,157,.10);

    box-shadow:

        0 0 0 60px rgba(91,55,157,.025),
        0 0 0 120px rgba(91,55,157,.018),
        0 0 0 180px rgba(91,55,157,.012);

}


/* ============================================================
   BRAND HEADER
   ============================================================ */

.brand-header {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 18px;

}


.brand-logo {

    width: 68px;
    height: 68px;

    display: flex;

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

    background: white;

    border-radius: 12px;

    border:
        1px solid #e4e5ec;

    box-shadow:
        0 10px 30px rgba(25, 30, 50, .08);

    overflow: hidden;

}


.brand-logo img {

    max-width: 82%;
    max-height: 82%;

    object-fit: contain;

}


.brand-name {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.brand-name strong {

    font-size: 21px;

    letter-spacing: 1.5px;

    color: #171c2b;

}


.brand-name span {

    font-size: 10px;

    letter-spacing: 2.8px;

    text-transform: uppercase;

    color: #777d8e;

}


/* ============================================================
   BRAND CONTENT
   ============================================================ */

.brand-content {

    position: relative;

    z-index: 2;

    max-width: 700px;

}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    padding: 8px 12px;

    border-radius: 30px;

    background: rgba(91,55,157,.07);

    color: #59389b;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;

}


.eyebrow::before {

    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2ca477;

    box-shadow:
        0 0 0 4px rgba(44,164,119,.10);

}


.brand-content h1 {

    margin: 0;

    max-width: 720px;

    font-size: clamp(
        42px,
        5vw,
        70px
    );

    line-height: 1.02;

    letter-spacing: -2px;

    font-weight: 800;

    color: #151a29;

}


.brand-content h1 span {

    color: #5b379d;

}


.brand-content p {

    max-width: 590px;

    margin-top: 28px;

    margin-bottom: 0;

    font-size: 15px;

    line-height: 1.8;

    color: #6e7484;

}


/* ============================================================
   SYSTEM INFO
   ============================================================ */

.system-info {

    position: relative;

    z-index: 2;

    display: flex;

    flex-wrap: wrap;

    gap: 28px;

}


.system-item {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #7a8090;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.system-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2ca477;

    box-shadow:
        0 0 0 4px rgba(44,164,119,.09);

}


/* ============================================================
   PANNEAU CONNEXION
   ============================================================ */

.login-panel {

    min-height: 100vh;

    padding: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    border-left:
        1px solid #e6e7ed;

}


.login-box {

    width: 100%;

    max-width: 470px;

}


/* ============================================================
   LOGIN HEADER
   ============================================================ */

.login-heading {

    margin-bottom: 35px;

}


.login-heading .small-title {

    display: block;

    margin-bottom: 12px;

    color: #5b379d;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.login-heading h2 {

    margin: 0;

    font-size: 35px;

    letter-spacing: -1px;

    color: #171c2b;

}


.login-heading p {

    margin-top: 12px;

    margin-bottom: 0;

    color: #7b8190;

    font-size: 13px;

    line-height: 1.6;

}


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

.login-form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.field {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.field label {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .8px;

    color: #454b5b;

    text-transform: uppercase;

}


.input-wrapper {

    position: relative;

}


.input-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: #8b90a0;

    font-size: 14px;

    pointer-events: none;

}


.field input {

    width: 100%;

    height: 56px;

    padding:
        0 17px 0 46px;

    border:
        1px solid #dedfe6;

    border-radius: 10px;

    outline: none;

    background: #fafafd;

    color: #171c2b;

    font-size: 14px;

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

}


.field input::placeholder {

    color: #a5a9b5;

}


.field input:focus {

    background: #ffffff;

    border-color: #6b45ad;

    box-shadow:
        0 0 0 4px rgba(91,55,157,.09);

}


/* ============================================================
   ERREUR
   ============================================================ */

.login-error {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 13px 15px;

    border:
        1px solid #f0cccc;

    border-radius: 9px;

    background: #fff5f5;

    color: #a83b3b;

    font-size: 12px;

    line-height: 1.5;

}


.login-error strong {

    display: block;

    margin-bottom: 2px;

    font-size: 12px;

}


/* ============================================================
   OPTIONS
   ============================================================ */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: -3px;

}


.remember {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 11px;

    color: #777d8c;

}


.remember input {

    accent-color: #5b379d;

}


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

.login-button {

    width: 100%;

    height: 58px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #50308e,
            #6b43a9
        );

    color: white;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 12px 25px rgba(91,55,157,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.login-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 15px 30px rgba(91,55,157,.27);

}


.login-button:active {

    transform: translateY(0);

}


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

.security-note {

    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid #ececf1;

    display: flex;

    align-items: center;

    gap: 10px;

    color: #858a98;

    font-size: 10px;

    line-height: 1.5;

}


.security-icon {

    width: 30px;
    height: 30px;

    display: flex;

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

    border-radius: 8px;

    background: #f3f1f8;

    color: #5b379d;

}


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

.login-footer {

    margin-top: 35px;

    display: flex;

    justify-content: space-between;

    color: #a0a4af;

    font-size: 9px;

    letter-spacing: .6px;

    text-transform: uppercase;

}


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

@media (max-width: 1000px) {

    body {
        overflow: auto;
    }

    .login-page {

        grid-template-columns: 1fr;

    }

    .login-brand {

        min-height: 480px;

    }

    .login-panel {

        min-height: auto;

        padding:
            50px 30px;

        border-left: none;

        border-top:
            1px solid #e6e7ed;

    }

}


@media (max-width: 600px) {

    .login-brand {

        min-height: 420px;

        padding: 30px;

    }

    .brand-content h1 {

        font-size: 40px;

    }

    .login-panel {

        padding: 35px 22px;

    }

    .brand-header {

        gap: 12px;

    }

    .brand-logo {

        width: 55px;
        height: 55px;

    }

    .system-info {

        gap: 15px;

    }

}
/* Correctif responsive : la page de connexion reste défilable sur les écrans bas. */
html, body { min-height: 100%; height: auto; }
body { overflow-x: hidden; overflow-y: auto; }
.login-page { min-height: 100vh; height: auto; }
@media (max-height: 760px), (max-width: 900px) { body { overflow-y: auto; } .login-page { grid-template-columns: minmax(0, 1fr); } .login-brand { min-height: auto; padding: 24px; } .login-panel { min-height: auto; padding: 24px 16px; } }
