/* ==========================================================
   ATLANTICA DISTRIBUTION — LOGIN
   Charte officielle : bleu / cyan / vert
   ========================================================== */

:root {
    --atl-blue: #00a9e8;
    --atl-blue-dark: #0077b5;
    --atl-blue-deep: #005b8f;
    --atl-blue-light: #eaf8fd;
    --atl-blue-soft: #f3fbfe;

    --atl-green: #8bdc3f;
    --atl-green-dark: #5fae20;
    --atl-green-light: #f1fae8;

    --atl-black: #171717;
    --atl-text: #292929;
    --atl-muted: #707982;
    --atl-muted-light: #9aa3aa;

    --atl-border: #e2e7eb;
    --atl-background: #f6f9fa;
    --atl-white: #ffffff;

    --atl-danger: #a53b3b;
    --atl-danger-background: #fff7f7;
    --atl-danger-border: #f0cccc;

    --atl-shadow: 0 18px 45px rgba(0, 72, 110, .10);
}


/* ==========================================================
   BASE
   ========================================================== */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--atl-background);
    color: var(--atl-black);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   PAGE
   ========================================================== */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: stretch;

    overflow: hidden;
}


/* ==========================================================
   LEFT — BRAND PANEL
   ========================================================== */

.login-brand-panel {
    position: relative;

    width: 47%;
    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(139, 220, 63, .16) 0,
            rgba(139, 220, 63, 0) 31%
        ),
        linear-gradient(
            145deg,
            var(--atl-blue-deep) 0%,
            var(--atl-blue-dark) 34%,
            var(--atl-blue) 100%
        );

    color: var(--atl-white);
}


/* Grand cercle supérieur */

.login-brand-panel::before {
    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    right: -330px;
    top: -235px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, .14);

    box-shadow:
        0 0 0 70px rgba(255, 255, 255, .018),
        0 0 0 140px rgba(255, 255, 255, .012);

    pointer-events: none;
}


/* Cercle vert inférieur */

.login-brand-panel::after {
    content: "";

    position: absolute;

    width: 470px;
    height: 470px;

    left: -285px;
    bottom: -235px;

    border-radius: 50%;

    background: rgba(139, 220, 63, .10);

    border: 1px solid rgba(139, 220, 63, .12);

    pointer-events: none;
}


/* ==========================================================
   DECORATIONS
   ========================================================== */

.brand-decoration {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.brand-decoration span {
    position: absolute;

    display: block;

    border-radius: 50%;

    background: rgba(255, 255, 255, .08);
}

.brand-decoration span:nth-child(1) {
    width: 14px;
    height: 14px;

    top: 18%;
    left: 14%;

    background: rgba(139, 220, 63, .32);

    box-shadow:
        0 0 0 8px rgba(139, 220, 63, .05);
}

.brand-decoration span:nth-child(2) {
    width: 8px;
    height: 8px;

    top: 68%;
    left: 19%;
}

.brand-decoration span:nth-child(3) {
    width: 20px;
    height: 20px;

    right: 15%;
    bottom: 22%;

    background: rgba(139, 220, 63, .22);
}

.brand-decoration span:nth-child(4) {
    width: 6px;
    height: 6px;

    right: 27%;
    top: 31%;
}


/* ==========================================================
   BRAND CONTENT
   ========================================================== */

.brand-content {
    position: relative;

    z-index: 2;

    width: min(570px, 82%);

    margin: auto;

    padding: 55px 0;
}


/* ==========================================================
   LOGO
   ========================================================== */

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 52px;

    padding: 12px 18px;

    border-radius: 16px;

    background: rgba(255, 255, 255, .97);

    box-shadow:
        0 16px 40px rgba(0, 35, 58, .18);
}

.brand-logo img {
    display: block;

    width: auto;
    max-width: 245px;
    max-height: 125px;

    object-fit: contain;

    filter: none;
}


/* ==========================================================
   FALLBACK LOGO
   ========================================================== */

.brand-logo-fallback {
    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-logo-mark {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--atl-blue);

    color: var(--atl-white);

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -.04em;
}

.brand-logo-text {
    color: var(--atl-black);

    font-size: 25px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .08em;
}

.brand-logo-text small {
    display: block;

    margin-top: 7px;

    color: var(--atl-muted);

    font-size: 9px;
    line-height: 1;

    letter-spacing: .18em;

    font-weight: 600;
}


/* ==========================================================
   BRAND INTRO
   ========================================================== */

.brand-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 21px;

    color: rgba(255, 255, 255, .76);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.brand-eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 20px;

    background: var(--atl-green);
}

.brand-title {
    max-width: 500px;

    margin: 0 0 23px;

    font-size: clamp(36px, 4vw, 57px);

    line-height: 1.04;

    font-weight: 750;

    letter-spacing: -.045em;
}

.brand-title strong {
    display: block;

    color: var(--atl-green);

    font-weight: 750;
}

.brand-description {
    max-width: 485px;

    margin: 0;

    color: rgba(255, 255, 255, .72);

    font-size: 15px;

    line-height: 1.75;
}


/* ==========================================================
   FEATURES
   ========================================================== */

.brand-features {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 39px;
}

.brand-feature {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 9px 13px;

    border: 1px solid rgba(255, 255, 255, .14);

    border-radius: 100px;

    background: rgba(255, 255, 255, .06);

    color: rgba(255, 255, 255, .86);

    font-size: 12px;
    font-weight: 550;

    backdrop-filter: blur(8px);
}

.brand-feature i {
    color: var(--atl-green);

    font-size: 13px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.brand-footer {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 27px;

    z-index: 3;

    text-align: center;

    color: rgba(255, 255, 255, .46);

    font-size: 11px;
}


/* ==========================================================
   RIGHT — FORM PANEL
   ========================================================== */

.login-form-panel {
    width: 53%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 35px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 169, 232, .035),
            transparent 32%
        ),
        var(--atl-white);
}

.login-container {
    width: min(430px, 100%);
}


/* ==========================================================
   MOBILE LOGO
   ========================================================== */

.mobile-logo {
    display: none;

    margin-bottom: 34px;

    text-align: center;
}

.mobile-logo img {
    display: inline-block;

    width: auto;
    max-width: 210px;
    max-height: 125px;

    object-fit: contain;

    filter: none;
}

.mobile-fallback {
    justify-content: center;
}

.mobile-fallback .brand-logo-text {
    color: var(--atl-blue-dark);
}

.mobile-fallback .brand-logo-text small {
    color: var(--atl-muted);
}


/* ==========================================================
   HEADING
   ========================================================== */

.login-heading {
    margin-bottom: 34px;
}

.badge-admin {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    padding: 7px 11px;

    border: 1px solid rgba(0, 169, 232, .10);

    border-radius: 8px;

    background: var(--atl-blue-light);

    color: var(--atl-blue-dark);

    font-size: 11px;
    font-weight: 750;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.badge-admin i {
    font-size: 12px;
}

.login-heading h1 {
    margin: 0 0 9px;

    color: var(--atl-black);

    font-size: 32px;

    line-height: 1.15;

    font-weight: 750;

    letter-spacing: -.035em;
}

.login-heading p {
    margin: 0;

    color: var(--atl-muted);

    font-size: 14px;

    line-height: 1.65;
}


/* ==========================================================
   ALERT
   ========================================================== */

.login-alert {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 24px;

    padding: 13px 15px;

    border: 1px solid var(--atl-danger-border);

    border-radius: 12px;

    background: var(--atl-danger-background);

    color: var(--atl-danger);

    font-size: 13px;

    line-height: 1.5;
}

.login-alert-icon {
    padding-top: 1px;

    font-size: 15px;

    flex-shrink: 0;
}

.login-alert-content {
    flex: 1;
}

.login-alert-close {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: -2px -3px 0 0;

    padding: 0;

    border: 0;

    border-radius: 6px;

    background: transparent;

    color: #a95a5a;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.login-alert-close:hover {
    background: rgba(165, 59, 59, .08);
}


/* ==========================================================
   FORM
   ========================================================== */

.login-form-group {
    margin-bottom: 21px;
}

.login-form-label {
    display: block;

    margin-bottom: 9px;

    color: var(--atl-text);

    font-size: 13px;

    font-weight: 650;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: #8d98aa;

    font-size: 15px;

    pointer-events: none;

    transition: color .2s ease;
}


/* ==========================================================
   INPUTS
   ========================================================== */

.login-input {
    width: 100%;
    height: 54px;

    padding: 0 47px;

    border: 1px solid var(--atl-border);

    border-radius: 11px;

    outline: none;

    background: #fbfcfd;

    color: var(--atl-black);

    font-size: 14px;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.login-input::placeholder {
    color: #a9b1b8;
}

.login-input:hover {
    border-color: #c6d1d8;
}

.login-input:focus {
    border-color: var(--atl-blue);

    background: var(--atl-white);

    box-shadow:
        0 0 0 4px rgba(0, 169, 232, .10);
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--atl-blue-dark);
}


/* ==========================================================
   PASSWORD
   ========================================================== */

.password-toggle {
    position: absolute;

    z-index: 3;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #8d98aa;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}

.password-toggle:hover {
    color: var(--atl-blue-dark);

    background: var(--atl-blue-light);
}


/* ==========================================================
   SUBMIT
   ========================================================== */

.login-submit {
    width: 100%;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 9px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--atl-blue-dark) 0%,
            var(--atl-blue) 100%
        );

    color: var(--atl-white);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: .01em;

    box-shadow:
        0 9px 22px rgba(0, 119, 181, .18);

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.login-submit i {
    transition: transform .2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 27px rgba(0, 119, 181, .24);
}

.login-submit:hover i {
    transform: translateX(3px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:disabled {
    opacity: .75;

    cursor: wait;

    transform: none;
}


/* ==========================================================
   SECURITY
   ========================================================== */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 25px;

    color: #8b949b;

    font-size: 11px;
}

.login-security i {
    color: var(--atl-green-dark);

    font-size: 12px;
}

.login-divider {
    height: 1px;

    margin: 32px 0 20px;

    background: #edf0f2;
}

.login-help {
    text-align: center;

    color: #899299;

    font-size: 11px;

    line-height: 1.6;
}


/* ==========================================================
   FOCUS ACCESSIBILITY
   ========================================================== */

.login-submit:focus-visible,
.password-toggle:focus-visible,
.login-alert-close:focus-visible {
    outline: 3px solid rgba(0, 169, 232, .22);
    outline-offset: 2px;
}

.login-input:focus-visible {
    outline: none;
}


/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .login-brand-panel {
        width: 42%;
    }

    .login-form-panel {
        width: 58%;
    }

    .brand-content {
        width: 78%;
    }

    .brand-logo {
        margin-bottom: 45px;
    }

    .brand-logo img {
        max-width: 210px;
        max-height: 105px;
    }

    .brand-title {
        font-size: 39px;
    }

    .brand-description {
        font-size: 14px;
    }

    .brand-feature {
        padding: 8px 11px;

        font-size: 11px;
    }
}


/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .login-page {
        min-height: 100vh;

        display: block;

        background: var(--atl-white);
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        width: 100%;
        min-height: 100vh;

        display: flex;

        align-items: flex-start;

        padding: 32px 24px;

        box-sizing: border-box;
    }

    .login-container {
        width: min(430px, 100%);

        margin: 0 auto;

        padding-top: 12px;
    }

    .mobile-logo {
        display: block;
    }

    .mobile-logo img {
        max-width: 210px;
        max-height: 115px;
    }

    .login-heading {
        text-align: center;
    }

    .login-heading h1 {
        font-size: 29px;
    }

    .login-heading p {
        font-size: 13px;
    }

    .badge-admin {
        margin-bottom: 15px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {

    .login-form-panel {
        padding: 27px 18px;
    }

    .login-container {
        padding-top: 8px;
    }

    .mobile-logo {
        margin-bottom: 28px;
    }

    .mobile-logo img {
        max-width: 185px;
        max-height: 105px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

    .login-heading p {
        font-size: 12.5px;
    }

    .login-input,
    .login-submit {
        height: 52px;
    }

}


/* ==========================================================
   VERY SMALL DEVICES
   ========================================================== */

@media (max-width: 340px) {

    .login-form-panel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .login-input,
    .login-submit {
        height: 50px;
    }

}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

}

.brand-logo {
    padding: 8px 14px;
    border-radius: 14px;
}

.brand-logo img {
    max-width: 255px;
    max-height: 115px;
}