/* =================== LAYOUT AUTH =================== */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 0; /* Le header fixed se superpose */
}
.auth-panel {
    padding-top: 80px; /* Pour eviter que le contenu ne passe sous le header fixed */
}
.auth-visual {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1400');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: #fff;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 18, 51, 0.85) 0%,
        rgba(0, 27, 77, 0.7) 50%,
        rgba(0, 18, 51, 0.9) 100%
    );
    z-index: 1;
}

.auth-visual > * {
    position: relative;
    z-index: 2;
}

.auth-visual__logo {
    display: inline-flex;
    align-items: baseline;
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    text-decoration: none;
}

.auth-visual__logo .logo__mark {
    background: #E4002B;
    color: #fff;
    padding: 2px 8px 4px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    margin-right: 2px;
}

.auth-visual__logo .logo__text {
    color: #fff;
    font-weight: 400;
}

.auth-visual__content {
    max-width: 460px;
}

.auth-visual__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.auth-visual__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.auth-visual__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.auth-visual__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
}

.auth-visual__feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.auth-visual__footer {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
}

/* =================== PANNEAU FORMULAIRE =================== */
.auth-panel {
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    background: #fff;
    overflow-y: auto;
    max-height: 100vh;
}

.auth-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.auth-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.auth-panel__back:hover {
    color: #001B4D;
}

.auth-panel__switch {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.auth-panel__switch a {
    color: #001B4D;
    font-weight: 600;
    text-decoration: none;
}

.auth-panel__switch a:hover {
    text-decoration: underline;
}

.auth-panel__content {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.auth-panel__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #1A1A1A;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.auth-panel__subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* =================== FORMULAIRE =================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
}

.form-group label .required {
    color: #E4002B;
    margin-left: 2px;
}

.form-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #E5E5E5;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus-within {
    border-color: #001B4D;
    box-shadow: 0 0 0 3px rgba(0, 27, 77, 0.08);
}

.form-input--error {
    border-color: #E4002B;
    background: #FFF5F7;
}

.form-input__icon {
    color: #999;
    flex-shrink: 0;
    font-size: 1rem;
}

.form-input input,
.form-input select {
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #1A1A1A;
    outline: none;
    width: 100%;
    font-weight: 500;
}

.form-input input::placeholder {
    color: #B0B0B0;
    font-weight: 400;
}

.form-input__toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.form-input__toggle:hover {
    color: #001B4D;
}

/* Indicateur de force du mot de passe */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.password-strength__bar {
    flex: 1;
    height: 3px;
    background: #E5E5E5;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.password-strength__bar.active-weak {
    background: #E4002B;
}

.password-strength__bar.active-medium {
    background: #FFB800;
}

.password-strength__bar.active-strong {
    background: #0B8043;
}

.password-strength__label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

/* =================== CHECKBOX / RADIO =================== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    line-height: 1.5;
}

.form-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #001B4D;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check a {
    color: #001B4D;
    font-weight: 600;
    text-decoration: none;
}

.form-check a:hover {
    text-decoration: underline;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-forgot {
    font-size: 0.85rem;
    color: #001B4D;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.form-forgot:hover {
    text-decoration: underline;
}

/* =================== BOUTONS =================== */
.btn--full {
    width: 100%;
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Separateur */
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: #999;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E5E5;
}

/* Boutons sociaux */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid #E5E5E5;
    border-radius: 10px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.social-btn:hover {
    border-color: #001B4D;
    background: #F4F6FB;
}

.social-btn__icon {
    font-size: 1.05rem;
}

/* =================== CHOIX TYPE DE COMPTE =================== */
.account-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    border: 2px solid #E5E5E5;
    border-radius: 16px;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.25s ease;
    background: #fff;
    cursor: pointer;
}

.account-type-card:hover {
    border-color: #001B4D;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 27, 77, 0.12);
}

.account-type-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 18px;
    background: #F4F6FB;
    color: #001B4D;
}

.account-type-card--hotel .account-type-card__icon {
    background: #FEE8EC;
    color: #E4002B;
}

.account-type-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #1A1A1A;
}

.account-type-card p {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    margin-bottom: 16px;
    flex: 1;
}

.account-type-card__cta {
    font-size: 0.87rem;
    font-weight: 700;
    color: #001B4D;
    font-family: 'Inter', sans-serif;
}

.account-type-card--hotel .account-type-card__cta {
    color: #E4002B;
}

/* =================== UPLOAD FICHIER =================== */
.file-upload {
    border: 2px dashed #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FAFAFA;
}

.file-upload:hover {
    border-color: #001B4D;
    background: #F4F6FB;
}

.file-upload__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.file-upload__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.file-upload__hint {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Inter', sans-serif;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload__filename {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #0B8043;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* =================== ALERTES =================== */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.alert--info {
    background: #F4F6FB;
    color: #001B4D;
    border: 1px solid #D6E9F8;
}

.alert--error {
    background: #FFF5F7;
    color: #B80023;
    border: 1px solid #FFD9E0;
}

.alert--success {
    background: #F0FAF4;
    color: #0B8043;
    border: 1px solid #C6E9D5;
}

/* =================== SECTION =================== */
.form-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #F0F0F0;
}

.form-section__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 968px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 220px;
        padding: 24px;
    }

    .auth-visual__content,
    .auth-visual__features {
        display: none;
    }

    .auth-panel {
        padding: 32px 24px;
        max-height: none;
    }

    .account-type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .auth-panel__title {
        font-size: 1.75rem;
    }

    .account-type-card {
        padding: 24px 20px;
    }
}
/* =================== LOGO + LANG SWITCHER (auth pages) =================== */
.auth-visual__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 100;
}

/* Logo en blanc sur fond sombre */
.auth-visual__top .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-visual__top .logo__mark {
    background: #E4002B;
    color: #fff;
    padding: 4px 10px 6px;
    border-radius: 6px 0 0 6px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.auth-visual__top .logo__text {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 4px 12px 6px 8px;
    border-radius: 0 6px 6px 0;
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Selecteur de langue en blanc */
.auth-visual__top .lang-switcher__trigger {
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-visual__top .lang-switcher__trigger:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.auth-visual__top .lang-switcher__flag,
.auth-visual__top .lang-switcher__caret {
    color: #fff;
}

/* Menu dropdown en blanc */
.auth-visual__top .lang-switcher__menu {
    background: #fff;
    border: 1px solid #E5E5E5;
}

.auth-visual__top .lang-switcher__menu .lang-switcher__item {
    color: #1A1A1A;
}

.auth-visual__top .lang-switcher__menu .lang-switcher__item:hover {
    background: #F4F6FB;
    color: #001B4D;
}
