/* Login Fashion Address — rendu mockup screen 2 */

html:has(.fa-login),
body:has(.fa-login) {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow-x: hidden;
}

body:has(.fa-login) > #layout-wrapper,
body:has(.fa-login) .main-content,
body:has(.fa-login) .page-content {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.fa-login {
    --fa-blue: #2563eb;
    --fa-blue-deep: #1d4ed8;
    --fa-indigo: #6366f1;
    --fa-navy: #0f172a;
    --fa-muted: #64748b;
    --fa-border: #e2e8f0;
    --fa-gold: #b45309;
    --fa-ok: #22c55e;
    --fa-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --fa-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    position: relative;
    min-height: 100vh;
    margin: 0;
    font-family: var(--fa-font);
    color: var(--fa-navy);
    background: #fff;
    overflow-x: hidden;
}

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

/* Décor fond (vagues + blob) */
.fa-login__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fa-login__blob {
    position: absolute;
    top: -80px;
    left: 38%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .16) 0%, rgba(59, 130, 246, .04) 55%, transparent 70%);
}

.fa-login__wave {
    position: absolute;
    left: 0;
    width: 62%;
    height: 55%;
    bottom: 0;
}

.fa-login__wave--1 { bottom: 0; opacity: 1; }
.fa-login__wave--2 { bottom: 40px; width: 58%; opacity: 1; }

.fa-login__stage {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 8px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 36px 8px;
    align-items: stretch;
}

/* —— Gauche —— */
.fa-login__left {
    position: relative;
    padding: 8px 28px 120px 4px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.fa-login__dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 72px;
    background-image: radial-gradient(circle, #cbd5e1 1.4px, transparent 1.5px);
    background-size: 11px 11px;
    opacity: .65;
    pointer-events: none;
}

.fa-login__brand {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.fa-login__brand-img {
    display: block;
    max-height: 58px;
    width: auto;
    max-width: min(280px, 72vw);
    object-fit: contain;
}

.fa-login__copy {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.fa-login__headline {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--fa-navy);
}

.fa-login__headline span {
    color: var(--fa-blue);
}

.fa-login__lede {
    margin: 14px 0 0;
    max-width: 40ch;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--fa-muted);
    font-weight: 500;
}

.fa-login__features {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fa-login__feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fa-login__feature-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.fa-login__feature-icon--blue {
    background: #dbeafe;
    color: var(--fa-blue);
}

.fa-login__feature-icon--sky {
    background: #e0f2fe;
    color: #0284c7;
}

.fa-login__feature-icon--teal {
    background: #d1fae5;
    color: #059669;
}

.fa-login__feature strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--fa-navy);
}

.fa-login__feature span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--fa-muted);
}

/* Héros entrepôt — bas de page, bord supérieur incliné (moitié masquée) */
.fa-login__visual {
    position: absolute;
    left: 12%;
    right: -28%;
    bottom: -8px;
    height: min(50vh, 400px);
    min-height: 250px;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-2.5deg);
    transform-origin: bottom right;
}

.fa-login__hero {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 62% 38%;
    background-repeat: no-repeat;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 440' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,290 L0,440 L1000,440 L1000,55 C820,95 640,70 480,125 C300,190 140,210 0,290 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 440' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0,290 L0,440 L1000,440 L1000,55 C820,95 640,70 480,125 C300,190 140,210 0,290 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.fa-login__hero-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, #fff 0%, rgba(255, 255, 255, .94) 26%, rgba(255, 255, 255, .45) 52%, transparent 72%),
        linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .72) 14%, transparent 38%);
    pointer-events: none;
}

.fa-login__quote {
    position: absolute;
    left: 4px;
    bottom: 36px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 12px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(37, 99, 235, .14);
    font-size: 13px;
    font-weight: 600;
    color: var(--fa-navy);
    white-space: nowrap;
}

.fa-login__quote i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--fa-blue);
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: 0 0 auto;
}

/* —— Droite —— */
.fa-login__right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 4px 16px;
    z-index: 2;
}

.fa-login__lang {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--fa-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--fa-navy);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.fa-login__lang i {
    color: var(--fa-muted);
    font-size: 16px;
}

.fa-login__lang select {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.fa-login__card {
    background: #fff;
    border-radius: 28px;
    padding: 40px 36px 30px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .09);
    border: 1px solid rgba(226, 232, 240, .9);
    flex: 0 1 auto;
}

.fa-login__secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fa-blue);
    margin-bottom: 16px;
}

.fa-login__secure i {
    font-size: 18px;
}

.fa-login__welcome h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.fa-login__welcome p {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--fa-muted);
}

#mahome_tachycentre {
    margin-top: 10px;
}

.fa-login__form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fa-login__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fa-navy);
}

.fa-login__field {
    position: relative;
    display: flex;
    align-items: center;
}

.fa-login__field > i:first-child {
    position: absolute;
    left: 14px;
    color: var(--fa-muted);
    font-size: 18px;
    pointer-events: none;
}

.fa-login__field input {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 42px;
    border: 1.5px solid var(--fa-border);
    border-radius: 12px;
    background: #f8fafc;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--fa-navy);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.fa-login__field input:focus {
    border-color: var(--fa-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.fa-login__eye {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--fa-muted);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.fa-login__eye:hover {
    color: var(--fa-blue);
    background: #eff6ff;
}

.fa-login__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -2px;
}

.fa-login__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fa-navy);
    cursor: pointer;
    user-select: none;
}

.fa-login__remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--fa-blue);
    cursor: pointer;
}

.fa-login__forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--fa-blue);
    text-decoration: none;
}

.fa-login__forgot:hover {
    text-decoration: underline;
}

.fa-login__submit {
    margin-top: 6px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 55%, #6366f1 100%);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .3);
    transition: transform .15s, box-shadow .15s, filter .15s;
}

.fa-login__submit:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.fa-login__submit:disabled {
    opacity: .75;
    cursor: wait;
}

.fa-login__submit i {
    font-size: 22px;
}

.fa-login__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 2px;
    color: var(--fa-muted);
    font-size: 12px;
    font-weight: 500;
}

.fa-login__or::before,
.fa-login__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--fa-border);
}

.fa-login__pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fa-login__pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 12px;
    border: 1px solid var(--fa-border);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: var(--fa-muted);
}

.fa-login__pill i {
    font-size: 18px;
    color: var(--fa-blue);
}

.fa-login__footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4px 16px 22px;
    font-size: 12px;
    color: var(--fa-muted);
    line-height: 1.55;
}

.fa-login__footer .fa-heart {
    color: #ef4444;
}

@media (max-width: 992px) {
    .fa-login__stage {
        grid-template-columns: 1fr;
        padding: 20px 16px 8px;
        min-height: auto;
    }

    .fa-login__left {
        padding: 8px 4px;
    }

    .fa-login__wave {
        width: 100%;
    }

    .fa-login__left {
        padding-bottom: 100px;
    }

    .fa-login__visual {
        left: 0;
        right: -12%;
        height: 230px;
        min-height: 210px;
        transform: rotate(-1.5deg);
    }

    .fa-login__quote {
        bottom: 20px;
        left: 8px;
    }

    .fa-login__card {
        padding: 28px 22px 24px;
    }
}

@media (max-width: 480px) {
    .fa-login__pills {
        grid-template-columns: 1fr;
    }

    .fa-login__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .fa-login__quote {
        white-space: normal;
        max-width: calc(100% - 24px);
    }
}
