/* === Page Connexion === */
.connection-section.login-page {
    height: auto !important;
    min-height: calc(100vh - var(--site-header-height, 76px));
}

.login-page {
    min-height: calc(100vh - var(--site-header-height, 76px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.login-page-shell {
    width: 100%;
    max-width: 920px;
}

.login-page-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 64px rgba(0, 14, 52, 0.22);
    background: #fff;
}

.login-page-aside {
    position: relative;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    color: #fff;
    background: linear-gradient(155deg, #0043ff 0%, #1a5cff 42%, #002d99 100%);
    overflow: hidden;
}

.login-page-aside::before,
.login-page-aside::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page-aside::before {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -50px;
    background: rgba(76, 255, 0, 0.14);
    filter: blur(2px);
}

.login-page-aside::after {
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: -30px;
    background: rgba(255, 255, 255, 0.1);
}

.login-page-aside-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.login-page-logo {
    margin: 0;
    font-family: var(--font-tertiary);
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.login-page-tagline {
    margin: 0;
    font-family: var(--font-tertiary);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 280px;
    position: relative;
    z-index: 1;
}

.login-page-form-panel {
    padding: 44px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-page-heading {
    margin: 0 0 8px;
    font-family: var(--font-tertiary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.login-page-subtitle {
    margin: 0 0 28px;
    font-family: var(--font-tertiary);
    font-size: 0.95rem;
    font-weight: 500;
    color: #5b6b8c;
    line-height: 1.5;
}

.login-page-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-family: var(--font-tertiary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
}

.login-field-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 67, 255, 0.18);
    border-radius: 12px;
    background: #f6f8ff;
    color: var(--color-primary);
    font-family: var(--font-tertiary);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field-input::placeholder {
    color: #8a9bb8;
}

.login-field-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 67, 255, 0.12);
}

.login-field-input:-webkit-autofill,
.login-field-input:-webkit-autofill:hover,
.login-field-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f6f8ff inset;
    -webkit-text-fill-color: var(--color-primary);
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap .login-field-input {
    padding-right: 48px;
}

.login-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b7c9a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-password-toggle:hover {
    color: var(--color-primary);
    background: rgba(0, 67, 255, 0.06);
}

.login-page-forgot {
    margin: -4px 0 0;
    text-align: right;
}

.login-page-forgot a {
    font-family: var(--font-tertiary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.login-page-forgot a:hover {
    text-decoration: underline;
}

.login-page-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    background: var(--color-secondary);
    color: #0a1a4a;
    font-family: var(--font-tertiary);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(76, 255, 0, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-page-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(76, 255, 0, 0.38);
}

.login-page-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-page-footer {
    margin: 22px 0 0;
    text-align: center;
    font-family: var(--font-tertiary);
    font-size: 0.92rem;
    font-weight: 500;
    color: #5b6b8c;
}

.login-page-footer a {
    color: var(--color-primary);
    font-weight: 800;
    text-decoration: none;
}

.login-page-footer a:hover {
    text-decoration: underline;
}

.login-page .login-alert {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .login-page {
        padding: 24px 16px;
        align-items: flex-start;
    }

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

    .login-page-aside {
        padding: 28px 24px;
        gap: 12px;
    }

    .login-page-logo {
        font-size: 1.6rem;
    }

    .login-page-tagline {
        font-size: 0.95rem;
        max-width: none;
    }

    .login-page-form-panel {
        padding: 28px 24px 32px;
    }

    .login-page-heading {
        font-size: 1.45rem;
    }
}
