:root {
    --fazea-navy: #071120;
    --fazea-navy-soft: #14213d;
    --fazea-gold: #b88a35;
    --fazea-gold-dark: #8f6723;
    --fazea-ivory: #fbfaf7;
    --fazea-surface: #ffffff;
    --fazea-text: #263247;
    --fazea-muted: #626a76;
    --fazea-border: rgba(7, 17, 32, 0.10);
    --fazea-border-strong: rgba(7, 17, 32, 0.16);
    --fazea-shadow: 0 18px 48px rgba(7, 17, 32, 0.08);
}

.auth-page {
    min-height: 100vh;
    padding: 56px 8% 70px;
    background:
        radial-gradient(circle at top left, rgba(184, 138, 53, 0.10), transparent 32%),
        linear-gradient(135deg, #fbfaf7 0%, #ffffff 58%, #f3f1eb 100%);
    color: #07111f;
}

.auth-wrapper {
    width: min(1420px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    border: 1px solid rgba(7, 17, 32, 0.10);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
}

/* VISUEL GAUCHE */

.auth-visual {
    position: relative;
    min-height: 690px;
    padding: 54px 54px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: #f3f1eb;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            180deg,
            rgba(243, 241, 235, 0.94) 0%,
            rgba(243, 241, 235, 0.74) 26%,
            rgba(243, 241, 235, 0.18) 54%,
            rgba(243, 241, 235, 0.10) 100%
        );
    pointer-events: none;
}

.auth-visual-logo {
    position: relative;
    z-index: 4;
    width: 132px;
    height: auto;
    margin-bottom: 48px;
    opacity: 0.9;
}

.auth-visual-content {
    position: relative;
    z-index: 4;
    max-width: 460px;
    margin-top: 18px;
}

.auth-visual-content h1 {
    color: #071120;
    font-size: clamp(36px, 3vw, 52px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.auth-visual-content p {
    max-width: 430px;
    margin-top: 20px;
    color: #263247;
    font-size: 18px;
    line-height: 1.58;
    font-weight: 750;
}

.auth-visual-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.auth-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.auth-benefits {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #071120, #14213d);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(7, 17, 32, 0.22);
}

.auth-benefits div {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 7px;
}

.auth-benefits svg,
.auth-reasons svg,
.input-wrap svg,
.auth-submit svg {
    display: inline-block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-benefits svg {
    width: 34px;
    height: 34px;
}

.auth-benefits strong {
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.auth-benefits span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

/* FORMULAIRE DROITE */

.auth-panel {
    padding: 58px clamp(34px, 5vw, 92px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.auth-tabs {
    margin-bottom: 34px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid rgba(7, 17, 32, 0.10);
}

.auth-tab {
    position: relative;
    padding: 0 0 20px;
    color: #7c8087;
    text-align: center;
    font-size: 20px;
    font-weight: 950;
}

.auth-tab.active {
    color: #b88a35;
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    border-radius: 999px;
    background: #b88a35;
}

.auth-heading h2 {
    color: #071120;
    font-size: clamp(28px, 2.3vw, 38px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.auth-heading p {
    margin-top: 10px;
    color: #5f6670;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 650;
}

.auth-form {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

.form-group label {
    color: #071120;
    font-size: 14px;
    font-weight: 900;
}

.input-wrap {
    position: relative;
}

.input-wrap input,
.form-group input {
    width: 100%;
    min-height: 56px;
    padding: 0 48px 0 18px;
    border: 1px solid rgba(7, 17, 32, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #07111f;
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.form-grid .input-wrap input {
    padding-right: 18px;
}

.input-wrap svg {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 22px;
    height: 22px;
    color: #8f938f;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input:focus,
.form-group input:focus {
    border-color: #9a712d;
    box-shadow: 0 0 0 4px rgba(184, 138, 53, 0.12);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #25303d;
    font-size: 14px;
    font-weight: 700;
}

.auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-options input {
    width: 16px;
    height: 16px;
    accent-color: #b88a35;
}

.auth-options a {
    color: #b88a35;
    font-weight: 900;
}

.auth-submit {
    min-height: 58px;
    margin-top: 8px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #071120, #14213d);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(7, 17, 32, 0.22);
    transition: 0.2s ease;
}

.auth-submit svg {
    width: 21px;
    height: 21px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #14213d, #071120);
}

.auth-switch {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(7, 17, 32, 0.10);
    color: #5f6670;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.auth-switch a {
    color: #b88a35;
    font-weight: 950;
}

.auth-alert {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.auth-alert-error {
    background: #fff1f1;
    color: #a40000;
    border: 1px solid #ffd1d1;
}

.auth-alert-success {
    background: #effaf6;
    color: #08745f;
    border: 1px solid #c7f1e2;
}

/* AVANTAGES BAS */

.auth-reasons {
    width: min(1420px, 100%);
    margin: 22px auto 0;
    padding: 38px 34px 42px;
    border: 1px solid rgba(7, 17, 32, 0.10);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
}

.auth-reasons h2 {
    position: relative;
    margin-bottom: 36px;
    color: #071120;
    text-align: center;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.auth-reasons h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: #b88a35;
    transform: translateX(-50%);
}

.auth-reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.auth-reasons-grid div {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
}

.auth-reasons svg {
    width: 52px;
    height: 52px;
    padding: 12px;
    border-radius: 999px;
    color: #b88a35;
    background: #f8f6f0;
}

.auth-reasons strong {
    color: #071120;
    font-size: 15px;
    font-weight: 950;
}

.auth-reasons span {
    max-width: 210px;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 1280px) {
    .auth-page {
        padding: 44px 5% 58px;
    }

    .auth-wrapper {
        grid-template-columns: 0.95fr 1.05fr;
    }

    .auth-visual {
        min-height: 650px;
        padding: 48px 38px 30px;
    }

    .auth-panel {
        padding: 48px 44px;
    }

    .auth-visual-content h1 {
        font-size: 40px;
    }

    .auth-visual-content p {
        font-size: 16px;
    }
}

@media (max-width: 1080px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 460px;
        padding: 38px 34px 26px;
    }

    .auth-visual-logo {
        width: 120px;
        margin-bottom: 22px;
    }

    .auth-visual-content {
        max-width: 540px;
        margin-top: 0;
    }

    .auth-visual-content h1 {
        font-size: 38px;
    }

    .auth-visual-content p {
        max-width: 520px;
    }

    .auth-visual-image img {
        object-position: center center;
    }

    .auth-benefits {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-panel {
        padding: 42px 34px;
    }

    .auth-reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .auth-page {
        padding: 28px 5% 44px;
    }

    .auth-wrapper {
        border-radius: 16px;
    }

    .auth-visual {
        min-height: auto;
        padding: 28px 22px 22px;
        display: grid;
        gap: 26px;
    }

    .auth-visual::after {
        background:
            linear-gradient(
                180deg,
                rgba(243, 241, 235, 0.96) 0%,
                rgba(243, 241, 235, 0.84) 42%,
                rgba(243, 241, 235, 0.52) 100%
            );
    }

    .auth-visual-logo {
        width: 110px;
        margin-bottom: 16px;
    }

    .auth-visual-content h1 {
        font-size: 31px;
    }

    .auth-visual-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .auth-visual-image img {
        object-position: center bottom;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .auth-benefits div {
        display: grid;
        grid-template-columns: 38px 1fr;
        text-align: left;
        justify-items: start;
        align-items: center;
    }

    .auth-benefits svg {
        grid-row: span 2;
    }

    .auth-panel {
        padding: 32px 22px;
    }

    .auth-tabs {
        margin-bottom: 28px;
    }

    .auth-tab {
        padding-bottom: 16px;
        font-size: 16px;
    }

    .auth-heading h2 {
        font-size: 27px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-options {
        display: grid;
        gap: 10px;
    }

    .auth-submit {
        width: 100%;
    }

    .auth-reasons {
        padding: 32px 22px 34px;
        border-radius: 16px;
    }

    .auth-reasons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .auth-page {
        padding: 0 0 38px;
    }

    .auth-wrapper,
    .auth-reasons {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .auth-visual {
        padding: 26px 18px 20px;
    }

    .auth-panel {
        padding: 30px 18px;
    }

    .auth-visual-content h1 {
        font-size: 29px;
    }

    .auth-tabs {
        margin-bottom: 24px;
    }
}

/* AJUSTEMENTS THÈME FAZEA */

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(184, 138, 53, 0.08), transparent 32%),
        linear-gradient(135deg, #fbfaf7 0%, #ffffff 58%, #f3f1eb 100%);
}

.auth-wrapper,
.auth-reasons {
    border-color: var(--fazea-border);
    box-shadow: var(--fazea-shadow);
}

.auth-visual {
    background: #f3f1eb;
}

.auth-benefits {
    background:
        radial-gradient(circle at 15% 0%, rgba(184, 138, 53, 0.16), transparent 34%),
        linear-gradient(135deg, var(--fazea-navy), var(--fazea-navy-soft));
}

.auth-tab.active,
.auth-options a,
.auth-switch a {
    color: var(--fazea-gold-dark);
}

.auth-tab.active::after,
.auth-reasons h2::after {
    background: var(--fazea-gold);
}

.auth-options input {
    accent-color: var(--fazea-gold);
}

.input-wrap input:focus,
.form-group input:focus {
    border-color: var(--fazea-gold);
    box-shadow: 0 0 0 4px rgba(184, 138, 53, 0.12);
}

.auth-submit {
    background: linear-gradient(135deg, var(--fazea-navy), var(--fazea-navy-soft));
    box-shadow: 0 18px 38px rgba(7, 17, 32, 0.22);
}

.auth-submit:hover {
    background: linear-gradient(135deg, var(--fazea-navy-soft), var(--fazea-navy));
}

.auth-reasons svg {
    color: var(--fazea-gold-dark);
    background: #f8f6f0;
    border: 1px solid rgba(184, 138, 53, 0.16);
}
