.main-content {
    padding: 0 !important;
}

.auth-split {
    display: flex;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(255, 214, 90, 0.10), transparent 60%),
        radial-gradient(900px 700px at 90% 110%, rgba(255, 214, 90, 0.06), transparent 55%),
        linear-gradient(135deg, #0d0f12 0%, #13171c 55%, #0e1115 100%);
}

.auth-brand-panel {
    flex: 0 0 45%;
    max-width: 45%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-split.auth-split-wide .auth-brand-panel {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 60px 48px;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 65%);
    border-radius: 63% 37% 48% 52% / 45% 54% 46% 55%;
    animation: authMorphBlob 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes authMorphBlob {
    0% {
        border-radius: 63% 37% 48% 52% / 45% 54% 46% 55%;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        border-radius: 38% 62% 58% 42% / 52% 40% 60% 48%;
        transform: translate(40px, -30px) scale(1.1) rotate(5deg);
    }
    66% {
        border-radius: 52% 48% 37% 63% / 40% 57% 43% 60%;
        transform: translate(-20px, 20px) scale(0.9) rotate(-3deg);
    }
    100% {
        border-radius: 45% 55% 62% 38% / 56% 46% 54% 44%;
        transform: translate(30px, -10px) scale(1.05) rotate(8deg);
    }
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
    border-radius: 42% 58% 52% 48% / 56% 44% 46% 54%;
    animation: authMorphBlob2 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes authMorphBlob2 {
    0% {
        border-radius: 42% 58% 52% 48% / 56% 44% 46% 54%;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        border-radius: 55% 45% 40% 60% / 44% 58% 42% 56%;
        transform: translate(-30px, 40px) scale(1.15) rotate(-6deg);
    }
    100% {
        border-radius: 48% 52% 58% 42% / 50% 46% 54% 50%;
        transform: translate(20px, -30px) scale(0.9) rotate(4deg);
    }
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-brand-icon {
    font-size: 3rem;
    color: var(--brand-accent);
    margin-bottom: 24px;
    animation: authIconPulse 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes authIconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.05) rotate(-3deg);
        opacity: 0.9;
    }
    75% {
        transform: scale(1.05) rotate(3deg);
        opacity: 0.9;
    }
}

.auth-brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.auth-brand-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.auth-brand-feature i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--brand-accent);
    flex-shrink: 0;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.auth-form-panel::before {
    content: "";
    position: absolute;
    inset: auto;
    top: 18%;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 214, 90, 0.14), transparent 62%);
    filter: blur(2px);
    border-radius: 46% 54% 60% 40% / 55% 42% 58% 45%;
    animation: authMorphBlob 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 26px;
    padding: 44px 40px;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-form-wrapper.auth-form-wide {
    max-width: 680px;
    padding: 44px 44px;
}

@media (min-width: 992px) {
    .auth-form-wrapper {
        padding: 46px 44px;
    }
}

[dir="rtl"] .auth-form-wrapper {
    text-align: right;
}

.auth-form-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-form-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #f2f5f8;
    margin-bottom: 8px;
}

.auth-form-header p {
    color: #a8b2bd;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-form-wrapper .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e6eaee;
    margin-bottom: 7px;
}

.auth-form-wrapper .text-danger {
    color: #ff6b6b !important;
}

.auth-form-wrapper .form-control {
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.06);
    color: #f2f5f8;
    color-scheme: dark;
    width: 100%;
}

.auth-form-wrapper .form-control::placeholder {
    color: #8b95a1;
}

.auth-form-wrapper .form-control:focus {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.09);
    color: #f2f5f8;
    box-shadow: 0 0 0 4px rgba(255, 214, 90, 0.14);
}

.auth-form-wrapper .form-control.input-error {
    border-color: var(--brand-danger);
}

/* Date input styling */
.auth-form-wrapper input[type="date"].form-control {
    color-scheme: dark;
    color: #f2f5f8;
}

.auth-form-wrapper input[type="date"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.85;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-form-wrapper input[type="date"].form-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Password field */
.auth-form-wrapper .password-field {
    position: relative;
}

[dir="ltr"] .auth-form-wrapper .password-field .form-control {
    padding-right: 48px;
}

[dir="rtl"] .auth-form-wrapper .password-field .form-control {
    padding-left: 48px;
}

.auth-form-wrapper .password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b95a1;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

[dir="ltr"] .auth-form-wrapper .password-toggle {
    right: 12px;
}

[dir="rtl"] .auth-form-wrapper .password-toggle {
    left: 12px;
}

.auth-form-wrapper .password-toggle:hover {
    color: var(--brand-primary);
}

/* Client Type Tabs (Particulier / Professionnel) — Always in the same row */
.auth-type-tabs {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    margin-bottom: 6px !important;
}

button.auth-type-tab,
.auth-type-tab {
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}

[dir="rtl"] button.auth-type-tab,
[dir="rtl"] .auth-type-tab {
    text-align: right !important;
}

button.auth-type-tab:hover,
.auth-type-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 214, 90, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

button.auth-type-tab.active,
.auth-type-tab.active {
    background: linear-gradient(135deg, rgba(255, 214, 90, 0.20) 0%, rgba(255, 214, 90, 0.05) 100%) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(255, 214, 90, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px) !important;
}

.auth-tab-icon {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
}

button.auth-type-tab:hover .auth-tab-icon,
.auth-type-tab:hover .auth-tab-icon {
    border-color: rgba(255, 214, 90, 0.4) !important;
    color: var(--brand-primary) !important;
}

button.auth-type-tab.active .auth-tab-icon,
.auth-type-tab.active .auth-tab-icon {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #0b0e11 !important;
    box-shadow: 0 0 14px rgba(255, 214, 90, 0.45) !important;
}

.auth-tab-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.auth-tab-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    display: block !important;
}

button.auth-type-tab.active .auth-tab-title,
.auth-type-tab.active .auth-tab-title {
    color: var(--brand-primary) !important;
}

.auth-tab-sub {
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.35 !important;
    display: block !important;
}

button.auth-type-tab.active .auth-tab-sub,
.auth-type-tab.active .auth-tab-sub {
    color: #ffffff !important;
}

.auth-pro-chip {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    background: var(--brand-primary) !important;
    color: #12161a !important;
    border-radius: 999px !important;
    margin-inline-start: 6px !important;
    letter-spacing: 0.05em !important;
}


/* 2-Column Signup Grid */
.auth-signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.auth-signup-grid .full-span {
    grid-column: 1 / -1;
}

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

/* Custom Select (Dark Liquid Glass to match form) */
.auth-form-wrapper .custom-select-wrapper {
    position: relative;
    width: 100%;
}

.auth-form-wrapper .custom-select-label,
.auth-form-wrapper .custom-select-wrapper .form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e6eaee !important;
    margin-bottom: 7px;
}

.auth-form-wrapper .custom-select-display {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #f2f5f8 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    transition: all 0.2s !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.auth-form-wrapper .custom-select-display:hover,
.auth-form-wrapper .custom-select-display.active,
.auth-form-wrapper .custom-select-wrapper.active .custom-select-display {
    border-color: var(--brand-primary) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 0 0 4px rgba(255, 214, 90, 0.14) !important;
    color: #ffffff !important;
}

.auth-form-wrapper .custom-select-display .arrow,
[dir="ltr"] .auth-form-wrapper .custom-select-display .arrow,
[dir="rtl"] .auth-form-wrapper .custom-select-display .arrow,
.auth-form-wrapper [dir="ltr"] .custom-select-display .arrow,
.auth-form-wrapper [dir="rtl"] .custom-select-display .arrow {
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    color: var(--brand-primary) !important;
    transition: transform 0.25s ease, color 0.2s ease !important;
}

.auth-form-wrapper .custom-select-display .arrow i {
    color: var(--brand-primary) !important;
    font-size: 0.85rem !important;
}

.auth-form-wrapper .custom-select-wrapper.active .custom-select-display .arrow,
.auth-form-wrapper .custom-select-display.active .arrow {
    transform: rotate(180deg) !important;
}

.auth-form-wrapper .custom-select-list {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    inset-inline-start: 0 !important;
    right: 0 !important;
    z-index: 1055 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 6px !important;
    background: linear-gradient(145deg, rgba(24, 28, 34, 0.98), rgba(16, 20, 25, 0.96)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65) !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    display: none;
}

.auth-form-wrapper .custom-select-list.show {
    display: block !important;
    animation: authSelectFadeIn 0.2s ease-out !important;
}

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

.auth-form-wrapper .custom-select-list li {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #f2f5f8 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    background: transparent !important;
    border-bottom: none !important;
    transition: all 0.15s ease !important;
}

.auth-form-wrapper .custom-select-list li:hover {
    background: rgba(255, 214, 90, 0.14) !important;
    color: var(--brand-primary) !important;
    padding-inline-start: 18px !important;
}

.auth-form-wrapper .custom-select-list li.selected {
    background: rgba(255, 214, 90, 0.2) !important;
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
}

.auth-form-wrapper .custom-select-list::-webkit-scrollbar {
    width: 6px !important;
}

.auth-form-wrapper .custom-select-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16) !important;
    border-radius: 4px !important;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--brand-primary);
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    background: #e6c04a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 214, 90, 0.35);
}

.auth-submit-btn:active {
    transform: translateY(0);
    background: #d4b043;
}

.auth-submit-btn:disabled {
    background: #d4c48a;
    color: rgba(33, 33, 33, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #a8b2bd;
}

.auth-switch a {
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: #e6c04a;
    text-decoration: underline;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox label {
    font-size: 0.88rem;
    color: #c6cdd4;
    cursor: pointer;
    line-height: 1.4;
}

.auth-checkbox label a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Forgot Password & Remember row */
.auth-forgot {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-forgot:hover {
    color: #fff2c2;
    text-decoration: underline;
}

.auth-extra,
.auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

[dir="rtl"] .auth-extra,
[dir="rtl"] .auth-remember-row {
    flex-direction: row-reverse;
}

/* Floating Controls */
.auth-language-top {
    position: fixed;
    top: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-language-top .lang-switcher-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f2f5f8;
}

.auth-language-top .lang-switcher-btn:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 214, 90, 0.14);
    color: var(--brand-primary);
}

.auth-language-top .lang-switcher-menu {
    background: rgba(22, 26, 31, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.auth-language-top .lang-switcher-item {
    color: #e6eaee;
}

.auth-language-top .lang-switcher-item:hover {
    background: rgba(255, 214, 90, 0.12);
    color: var(--brand-primary);
}

.auth-language-top .lang-switcher-item.active-lang {
    background: var(--brand-primary);
    color: #212121;
}

.auth-language-top .lang-switcher-item.active-lang .lang-check {
    color: #212121;
}

[dir="ltr"] .auth-language-top {
    right: 20px;
}

[dir="rtl"] .auth-language-top {
    left: 20px;
}

.auth-home-link {
    position: fixed;
    top: 20px;
    z-index: 100;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

[dir="ltr"] .auth-home-link {
    left: 20px;
}

[dir="rtl"] .auth-home-link {
    right: 20px;
}

.auth-home-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.auth-home-link i {
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 991px) {
    .auth-brand-panel {
        display: none;
    }
    .auth-form-panel {
        padding: 32px 24px;
    }
    .auth-form-wrapper,
    .auth-form-wrapper.auth-form-wide {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 24px 16px;
    }
    .auth-form-header h2 {
        font-size: 1.5rem;
    }
    .auth-language-top {
        top: 12px;
        right: 12px;
    }
    [dir="rtl"] .auth-language-top {
        right: auto;
        left: 12px;
    }
}
