* {
    box-sizing: border-box;
}

:root {
    --orange: #ef9900;
    --black: #050505;
    --white: #ffffff;
    --grey: #6b7280;
    --border: #e5e7eb;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow: hidden;

    font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            Arial,
            sans-serif;

    background: white;
    color: #111827;
}

.page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
}

.topbar {
    flex: 0 0 auto;

    min-height: 64px;

    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(28px, env(safe-area-inset-right));
    padding-bottom: 8px;
    padding-left: max(28px, env(safe-area-inset-left));

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

    background: var(--black);
}

.logo {
    display: block;

    max-width: 260px;
    max-height: 46px;

    width: auto;
    height: auto;

    object-fit: contain;
}

.topbar-label {
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
}

.login-layout {
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: 25% 75%;
}

.presentation {
    min-height: 0;

    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: max(25px, env(safe-area-inset-bottom));
    padding-left: max(25px, env(safe-area-inset-left));

    display: flex;
    flex-direction: column;
    justify-content: space-between;

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

    overflow: hidden;
}

.pill {
    display: inline-block;

    padding: 7px 13px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.presentation h1 {
    max-width: 100%;

    margin: 20px 0 12px;

    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: -0.6px;
}

.presentation > div > p {
    max-width: 100%;

    margin: 0;

    color: rgba(255, 255, 255, 0.60);

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

.modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;

    margin-top: 20px;
}

.module {
    min-height: 85px;

    padding: 12px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
}

.module-icon {
    margin-bottom: 7px;
    font-size: 18px;
}

.module strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.module small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.login-zone {
    min-height: 0;

    padding-top: 25px;
    padding-right: max(40px, env(safe-area-inset-right));
    padding-bottom: max(25px, env(safe-area-inset-bottom));
    padding-left: 40px;

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

    background: var(--white);

    overflow: hidden;
}

.login-box {
    width: 100%;
    max-width: 430px;
}

.eyebrow {
    margin-bottom: 10px;

    color: var(--orange);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.login-box h2 {
    margin: 0;

    font-size: 33px;
    font-weight: 650;
    letter-spacing: -0.6px;
}

.intro {
    margin: 7px 0 22px;

    color: var(--grey);

    font-size: 14px;
}

.error-message {
    margin-bottom: 20px;
    padding: 13px 15px;

    background: #fff3f3;

    border: 1px solid #ffd7d7;
    border-radius: 10px;

    color: #9f1c1c;

    font-size: 14px;
}

form > label,
.password-head label {
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;

    margin-top: 9px;
    padding: 14px 15px;

    border: 1px solid #d7dbe1;
    border-radius: 11px;

    background: white;

    font: inherit;

    outline: none;

    transition: 0.15s;
}

input:focus {
    border-color: var(--orange);

    box-shadow:
            0 0 0 3px rgba(239, 153, 0, 0.14);
}

.password-head {
    margin-top: 21px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot {
    color: var(--orange);

    font-size: 13px;

    text-decoration: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 80px;
}

.toggle-password {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-28%);

    padding: 6px;

    border: 0;

    background: transparent;

    color: var(--grey);

    cursor: pointer;
}

.login-button {
    width: 100%;

    margin-top: 22px;
    padding: 13px;

    border: 0;
    border-radius: 11px;

    background: var(--orange);
    color: #111;

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

    cursor: pointer;

    transition: 0.15s;
}

.login-button:hover {
    filter: brightness(0.96);
}

.bottom-note {
    margin-top: 25px;
    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: #8a919c;

    text-align: center;

    font-size: 12px;
}


/* =========================================
   TABLETTES / ÉCRANS MOYENS
========================================= */

@media (max-width: 900px) {

    .topbar-label {
        display: none;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .presentation {
        display: none;
    }

    .login-zone {
        flex: 1;
        min-height: 0;

        padding-top: 24px;
        padding-right: max(24px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: max(24px, env(safe-area-inset-left));
    }

    .login-box {
        max-width: 480px;
    }
}


/* =========================================
   SMARTPHONES
========================================= */

@media (max-width: 560px) {

    .topbar {
        min-height: 54px;

        padding-top: max(8px, env(safe-area-inset-top));
        padding-right: max(18px, env(safe-area-inset-right));
        padding-bottom: 8px;
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .logo {
        max-width: 220px;
        max-height: 42px;
    }

    .login-zone {
        padding-top: 18px;
        padding-right: max(18px, env(safe-area-inset-right));
        padding-bottom: max(18px, env(safe-area-inset-bottom));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .login-box h2 {
        font-size: 29px;
    }

    .intro {
        margin-bottom: 18px;
    }

    input {
        padding: 12px 14px;
    }

    .login-button {
        margin-top: 18px;
        padding: 12px;
    }

    .bottom-note {
        margin-top: 20px;
        padding-top: 15px;
    }
}