/*
 * Authentification membre — Editorial luxury
 * Le Studio By M
 */

.auth-modern-page {
    min-height: 100dvh;
    background: #16110D;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-modern-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(184, 122, 79, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 80%, rgba(212, 165, 116, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: #1F1812;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: clamp(2.5rem, 6vw, 3.5rem);
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.auth-logo-text {
    font-family: var(--lsbm-font-body);
    font-size: 1.75rem;
    font-weight: 400;
    color: #DCAE82;
    margin: 0;
    letter-spacing: 0;
}

.auth-subtitle {
    color: #7C7165;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.auth-title {
    font-family: var(--lsbm-font-body);
    font-size: 1.85rem;
    font-weight: 400;
    color: #F6EFE6;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0;
}

.auth-description {
    color: #B3A799;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.form-group-modern {
    margin-bottom: 1.75rem;
}

.form-label-modern {
    display: block;
    font-weight: 500;
    color: #7C7165;
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.form-control-modern {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.95rem;
    background: #2A211A;
    color: #F6EFE6;
    transition: border-color 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    font-family: var(--lsbm-font-body);
}

.form-control-modern:focus {
    outline: none;
    border-color: #C08A5E;
    box-shadow: none;
}

.form-control-modern::placeholder {
    color: #7C7165;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #C08A5E;
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1;
    pointer-events: none;
}

.btn-auth-modern,
.btn-primary-auth {
    width: 100%;
    padding: 1rem 2rem;
    background: #C08A5E;
    color: #0A0A0A;
    border: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    font-family: var(--lsbm-font-body);
}

.btn-auth-modern:hover,
.btn-primary-auth:hover {
    background: #DCAE82;
    color: #0A0A0A;
}

.btn-auth-modern:active,
.btn-primary-auth:active {
    transform: scale(0.98);
}

.auth-link {
    color: #DCAE82;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #EFE3D4;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #7C7165;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-divider span {
    padding: 0 1rem;
}

.alert-success-auth {
    background: rgba(184, 122, 79, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    color: #EFE3D4;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error-auth {
    background: rgba(247, 37, 133, 0.08);
    border: 1px solid rgba(247, 37, 133, 0.2);
    color: #FF7B2C;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me-modern {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.remember-me-modern input[type="checkbox"] {
    accent-color: #C08A5E;
}

.remember-me-modern label {
    color: #B3A799;
    font-size: 0.85rem;
    cursor: pointer;
}

.auth-footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #7C7165;
    font-size: 0.85rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7C7165;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #DCAE82;
}

/* ─── Helpers manquants (base auth) ─── */
.auth-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.auth-back--standalone {
    position: static;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 440px;
}

.btn-back-auth,
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #7C7165;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.btn-back-auth:hover,
.auth-back-link:hover {
    color: #DCAE82;
    border-color: rgba(220, 174, 130, 0.35);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control-modern--plain {
    padding-left: 1rem;
}

.alert-auth {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-auth i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-danger-auth {
    background: rgba(247, 37, 133, 0.08);
    border: 1px solid rgba(247, 37, 133, 0.2);
    color: #e8b4d4;
}

.checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.checkbox-modern input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #C08A5E;
    cursor: pointer;
}

.checkbox-modern label {
    color: #B3A799;
    font-size: 0.88rem;
    line-height: 1.55;
    cursor: pointer;
}

.auth-links {
    text-align: center;
}

.auth-links p {
    color: #7C7165;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.btn-auth-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.btn-auth-modern i,
.btn-primary-auth i {
    line-height: 1;
    flex-shrink: 0;
}

/* ─── Inscription — layout checkout ─── */
.auth-modern-page--register {
    flex-direction: column;
    align-items: stretch;
    padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 2rem;
    min-height: calc(100dvh - 0px);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-shell--checkout {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.auth-plan-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.25rem;
}

.auth-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.auth-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7C7165;
}

.auth-step span {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    flex-shrink: 0;
}

.auth-step.is-active {
    color: #DCAE82;
}

.auth-step.is-active span {
    background: #C08A5E;
    border-color: #C08A5E;
    color: #0A0A0A;
}

.auth-plan-card {
    background: linear-gradient(160deg, rgba(42, 33, 26, 0.95) 0%, rgba(31, 24, 18, 0.98) 100%);
    border: 1px solid rgba(220, 174, 130, 0.14);
    border-radius: 10px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.auth-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DCAE82, #C08A5E);
}

.auth-plan-card__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(192, 138, 94, 0.18);
    border: 1px solid rgba(220, 174, 130, 0.25);
    color: #DCAE82;
    margin-bottom: 1rem;
}

.auth-plan-card__eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7C7165;
    margin: 0 0 0.35rem;
}

.auth-plan-card__name {
    font-family: var(--lsbm-font-body);
    font-size: 1.65rem;
    font-weight: 400;
    color: #F6EFE6;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.auth-plan-card__subtitle {
    color: #B3A799;
    font-size: 0.88rem;
    margin: 0 0 0.75rem;
}

.auth-plan-card__price {
    font-family: var(--lsbm-font-body);
    font-size: 2.5rem;
    font-weight: 400;
    color: #DCAE82;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.auth-plan-card__price small {
    font-family: var(--lsbm-font-body);
    font-size: 0.95rem;
    color: #7C7165;
    font-weight: 400;
    margin-left: 0.15rem;
}

.auth-plan-card__desc {
    color: #B3A799;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.auth-plan-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-plan-card__features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #EFE3D4;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-plan-card__features i {
    color: #C08A5E;
    flex-shrink: 0;
    line-height: 1;
}

.auth-trust {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #7C7165;
    font-size: 0.82rem;
    margin: 0;
}

.auth-trust i {
    color: #C08A5E;
    line-height: 1;
    flex-shrink: 0;
}

.auth-card--register {
    max-width: none;
}

.auth-card__header {
    margin-bottom: 1.75rem;
}

.auth-card__header .auth-title {
    text-align: left;
    margin-bottom: 0.35rem;
}

.auth-card__header .auth-description {
    text-align: left;
    margin-bottom: 0;
}

.auth-logo--compact {
    margin-bottom: 1.25rem;
}

.auth-logo--compact img {
    max-width: 120px;
    margin-bottom: 0;
}

.auth-form-grid {
    display: grid;
    gap: 0 1rem;
}

.auth-form-grid--names {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0.25rem;
}

.auth-form-grid--passwords {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 0.25rem;
}

.auth-checkboxes {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-checkboxes .checkbox-modern:last-child {
    margin-bottom: 0;
}

.auth-mini-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: #7C7165;
}

.auth-mini-footer a {
    color: #7C7165;
    text-decoration: none;
    transition: color 0.25s;
}

.auth-mini-footer a:hover {
    color: #DCAE82;
}

.auth-mini-footer span {
    margin: 0 0.45rem;
    opacity: 0.45;
}

@media (max-width: 900px) {
    .auth-shell--checkout {
        grid-template-columns: 1fr;
    }

    .auth-plan-aside {
        order: -1;
    }

    .auth-plan-card {
        padding: 1.25rem 1.35rem;
    }

    .auth-plan-card__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem 1rem;
    }

    .auth-steps {
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .auth-form-grid--names,
    .auth-form-grid--passwords {
        grid-template-columns: 1fr;
    }

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

    .auth-card {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.15rem;
    }

    .auth-back {
        position: static;
        margin-bottom: 0.75rem;
    }
}

