.yara-login-page {
    --yara-blue-dark: #002b5e;
    --yara-blue: #0072ce;
    --text-dark: #10243e;
    --text-gray: #64748b;
    width: 100%;
    min-height: 100vh;
    display: flex;
    background: #f5f8fb;
    overflow: hidden;
}

/* Partie gauche */

.yara-login-banner {
    position: relative;
    width: 57%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 55px 7%;
    color: white;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(0,43,94,.97), rgba(0,114,206,.72)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    animation: yaraBannerIn 1s cubic-bezier(.22,.61,.36,1) both;
}

.yara-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 25%, rgba(0,114,206,.35), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(0,43,94,.45), transparent 40%);
    pointer-events: none;
}

.yara-login-banner::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    right: -220px;
    bottom: -220px;
    border-radius: 50%;
    background: #0072ce;
    filter: blur(120px);
    opacity: .2;
    animation: yaraGlow 8s ease-in-out infinite;
}

/* Contenu gauche */

.yara-banner-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: auto 0;
    animation: yaraContentIn 1s .2s cubic-bezier(.22,.61,.36,1) both;
}

.yara-banner-logo {
    width: 125px;
    height: auto;
    margin-bottom: 55px;
    margin-right: 30px;
    opacity: .95;
}

.yara-eyebrow,
.yara-form-eyebrow {
    display: inline-block;
    color: #0072ce;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
}

.yara-eyebrow {
    margin-bottom: 18px;
    color: #d8ecff;
}

.yara-banner-content h1 {
    margin: 0 0 25px;
    font-size: clamp(48px,5vw,72px);
    line-height: .98;
    font-weight: 700;
    letter-spacing: -2.5px;
    text-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.yara-banner-content h1 span {
    background: linear-gradient(90deg,#fff,#8bc9ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yara-banner-content p {
    max-width: 590px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.72);
    font-size: 16px;
    line-height: 1.7;
}

.yara-banner-line {
    width: 65px;
    height: 4px;
    margin-bottom: 28px;
    border-radius: 10px;
    background: linear-gradient(90deg,#002b5e,#0072ce);
    box-shadow: 0 0 20px rgba(0,114,206,.6);
    animation: yaraLineGrow .8s .8s both;
}

/* Fonctionnalités */

.yara-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.yara-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.62);
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0072ce;
    box-shadow: 0 0 10px rgba(0,114,206,.8);
}

/* Footer gauche */

.yara-banner-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.footer-separator {
    width: 1px;
    height: 13px;
    background: rgba(255,255,255,.25);
}

/* Partie droite */

.yara-login-form-container {
    position: relative;
    width: 43%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0,114,206,.08), transparent 35%),
        #f7f9fb;
    box-shadow: -15px 0 50px rgba(0,43,94,.08);
    z-index: 3;
}

.yara-form-wrapper {
    width: 100%;
    max-width: 430px;
    animation: yaraFormIn .9s .15s cubic-bezier(.22,.61,.36,1) both;
}

/* Header formulaire */

.yara-form-header {
    margin-bottom: 32px;
}

.yara-logo-mobile {
    display: none;
}

.yara-form-eyebrow {
    margin-bottom: 10px;
}

.yara-form-header h2 {
    margin: 0 0 9px;
    background: linear-gradient(90deg,#002b5e,#0072ce);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px;
    font-weight: 750;
    letter-spacing: -1.2px;
}

.yara-form-header .subtitle {
    margin: 0;
    color: var(--text-gray);
    font-size: 14px;
}

/* Alertes */

.yara-alert-error,
.yara-alert-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
    animation: yaraAlertIn .4s ease both;
}

.yara-alert-error {
    color: #b4233c;
    background: #fff1f3;
    border: 1px solid #ffd1d8;
}

.yara-alert-info {
    flex-direction: column;
    color: var(--yara-blue-dark);
    background: #edf6ff;
    border: 1px solid #cde5fa;
}

.yara-alert-info a {
    color: var(--yara-blue);
    font-weight: 700;
    text-decoration: none;
}

.yara-alert-info a:hover {
    text-decoration: underline;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #c9364e;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* Champs */

.yara-form-group {
    margin-bottom: 21px;
}

.yara-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 650;
}

.yara-input-wrapper {
    position: relative;
}

.yara-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--yara-blue);
    font-size: 16px;
    font-weight: 700;
}

.yara-input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 47px;
    border: 1px solid #d9e1e9;
    border-radius: 11px;
    outline: none;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,29,66,.025);
    transition: border-color .25s ease,box-shadow .25s ease,transform .25s ease;
}

.yara-input-wrapper input::placeholder {
    color: #a5b0bc;
}

.yara-input-wrapper input:focus {
    border-color: var(--yara-blue);
    box-shadow: 0 0 0 3px rgba(0,114,206,.1),0 7px 20px rgba(0,43,94,.06);
    transform: translateY(-1px);
}

/* Mot de passe */

.yara-password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.yara-password-label label {
    margin-bottom: 0;
}

.forgot-password-link {
    color: var(--yara-blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}

.forgot-password-link:hover {
    color: var(--yara-blue-dark);
    text-decoration: underline;
}

/* Remember */

.yara-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: -3px;
    margin-bottom: 20px;
}

.yara-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--yara-blue);
    cursor: pointer;
}

.yara-remember label {
    margin: 0;
    color: var(--text-gray);
    font-size: 12px;
    cursor: pointer;
}

/* Bouton */

.yara-login-button {
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    border: none;
    border-radius: 11px;
    background: linear-gradient(100deg,#002b5e,#0072ce);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 25px rgba(0,43,94,.2);
    transition: transform .25s ease,box-shadow .25s ease;
}

.yara-login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);
    transform: skewX(-20deg);
    transition: left .65s ease;
}

.yara-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(0,43,94,.28);
}

.yara-login-button:hover::before {
    left: 140%;
}

.yara-login-button:active {
    transform: translateY(0) scale(.98);
}

.yara-button-arrow {
    color: #d8ecff;
    font-size: 20px;
    transition: transform .25s ease;
}

.yara-login-button:hover .yara-button-arrow {
    transform: translateX(5px);
}

/* Footer formulaire */

.yara-form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.yara-form-footer span {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.yara-form-footer p {
    margin: 0;
    color: #9aa7b5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
}

.yara-security-text {
    margin-top: 14px;
    color: #a1acb8;
    font-size: 9px;
    text-align: center;
}

/* Animations */

@keyframes yaraBannerIn {
    from {
        opacity: 0;
        transform: translateX(-35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes yaraContentIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yaraFormIn {
    from {
        opacity: 0;
        transform: translateX(45px) scale(.98);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes yaraAlertIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yaraLineGrow {
    from {
        width: 0;
    }
    to {
        width: 65px;
    }
}

@keyframes yaraGlow {
    0%,100% {
        transform: translate(0,0);
    }
    50% {
        transform: translate(-25px,-20px);
    }
}

/* Responsive */

@media (max-width: 900px) {
    .yara-login-banner {
        width: 50%;
        padding: 40px;
    }
    .yara-login-form-container {
        width: 50%;
        padding: 30px;
    }
    .yara-banner-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 700px) {
    .yara-login-page {
        overflow: auto;
        flex-direction: column;
    }
    .yara-login-banner {
        width: 100%;
        min-height: 390px;
        padding: 35px 28px;
    }
    .yara-banner-logo {
        width: 95px;
        margin-bottom: 30px;
    }
    .yara-banner-content {
        margin: auto 0;
    }
    .yara-banner-content h1 {
        font-size: 40px;
    }
    .yara-banner-content p {
        font-size: 14px;
    }
    .yara-features,
    .yara-banner-footer {
        display: none;
    }
    .yara-login-form-container {
        width: 100%;
        min-height: auto;
        padding: 45px 25px 50px;
        box-shadow: none;
    }
    .yara-logo-mobile {
        display: block;
        margin-bottom: 25px;
    }
    .yara-logo-mobile img {
        width: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yara-login-page *,
    .yara-login-page *::before,
    .yara-login-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
