:root {
    --primary: #1c78b8;
    --primary-dark: #115d91;
    --ink: #18364d;
    --muted: #718494;
    --line: #dbe8f1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    background: #edf5fa;
    color: var(--ink);
    font-family: 'Roboto', Arial, sans-serif;
}

.login-page {
    display: grid;
    min-height: 100vh;
    padding: clamp(18px, 4vw, 48px);
    place-items: center;
    background:
        radial-gradient(circle at 5% 0, rgba(28, 120, 184, .14), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(28, 120, 184, .10), transparent 28%),
        #edf5fa;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
    width: min(1050px, 100%);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(28, 120, 184, .12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 75px rgba(30, 74, 102, .17);
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 6vw, 64px);
    overflow: hidden;
    background: linear-gradient(145deg, #1c78b8, #0f5c8e);
    color: #fff;
}

.login-visual::before,
.login-visual::after {
    position: absolute;
    border-radius: 50%;
    content: '';
}

.login-visual::before {
    top: 15%;
    right: -140px;
    width: 380px;
    height: 380px;
    border: 70px solid rgba(255, 255, 255, .06);
}

.login-visual::after {
    bottom: -130px;
    left: -90px;
    width: 290px;
    height: 290px;
    background: rgba(255, 255, 255, .05);
}

.visual-brand,
.visual-copy,
.visual-stats {
    position: relative;
    z-index: 1;
}

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

.visual-brand > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    font-size: 20px;
    font-weight: 900;
}

.visual-brand strong {
    letter-spacing: .12em;
}

.visual-copy {
    max-width: 530px;
}

.kicker {
    color: #b8e3fb;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.visual-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(37px, 5vw, 61px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.visual-copy p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.7;
}

.visual-stats {
    display: flex;
    gap: 30px;
}

.visual-stats div {
    display: flex;
    flex-direction: column;
}

.visual-stats strong {
    font-size: 25px;
}

.visual-stats span {
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 68px);
}

.back-home {
    align-self: flex-start;
    margin-bottom: 38px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.form-heading > span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 6px 0 7px;
    color: var(--ink);
    font-size: 34px;
    letter-spacing: -.035em;
}

.form-heading p {
    margin: 0 0 27px;
    color: var(--muted);
    font-size: 12px;
}

.login-error {
    margin-bottom: 17px;
    padding: 12px 14px;
    border: 1px solid #f1cfd5;
    border-radius: 10px;
    background: #fff5f6;
    color: #a63345;
    font-size: 11px;
    font-weight: 700;
}

.login-form-panel form {
    display: grid;
    gap: 17px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: #34536a;
    font-size: 11px;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: #fbfdff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.form-group input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 120, 184, .1);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-options a {
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.login-form-panel button {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    box-shadow: 0 12px 25px rgba(28, 120, 184, .22);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.login-form-panel button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Champ mot de passe avec une simple icône œil, sans fond ni rectangle. */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.login-form-panel .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: #718494;
    font-size: inherit;
    font-weight: 400;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease;
}

.login-form-panel .password-toggle:hover,
.login-form-panel .password-toggle:focus-visible {
    background: transparent;
    box-shadow: none;
    color: var(--primary);
    transform: translateY(-50%);
}

.password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

.security-note {
    margin: 22px 0 0;
    color: #8a98a3;
    font-size: 9px;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 360px;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 0;
        place-items: stretch;
    }

    .login-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .login-visual {
        min-height: 305px;
        padding: 28px 22px;
    }

    .visual-copy h1 {
        font-size: 37px;
    }

    .login-form-panel {
        padding: 34px 22px 45px;
    }

    .back-home {
        margin-bottom: 28px;
    }

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