body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.fi-simple-page {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.fi-simple-main {
    padding: 0 !important;
}

.fi-simple-header {
    display: none;
}

.signup-sidebar-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

.signup-form-container form:not(.registration-form) {
    margin-bottom: 0.75rem;
}

@media (max-width: 1024px) {
    .signup-sidebar-container {
        grid-template-columns: 1fr;
    }

    .signup-sidebar {
        display: none;
    }
}

.signup-sidebar {
    background: linear-gradient(135deg, #5028a0 0%, #7c3aed 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: 100%;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

[dir="rtl"] .signup-sidebar {
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.signup-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

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

.sidebar-header {
    margin-bottom: 3rem;
}

.sidebar-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 300;
}

.sidebar-images {
    margin-bottom: 3rem;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
}

.image-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
}

.image-slide.active {
    opacity: 1;
}

.sidebar-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.image-caption {
    text-align: center;
}

.image-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.image-caption p {
    font-size: 1rem;
    opacity: 0.85;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 2.5rem;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 0.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 3rem;
}

.sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.signup-form-container {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    background: var(--color-gray-50);
    position: relative;
    overflow-y: auto;
    min-height: 100vh;
}

.dark .signup-form-container {
    background: var(--color-gray-950);
}

.language-switcher {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.lang-switcher-link {
    display: flex;
    align-items: center;
    space-x: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.lang-switcher-link:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

.dark .lang-switcher-link {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d1d1;
}

.dark .lang-switcher-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.form-header-section {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    text-align: center;
}


.logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.treek-logo {
    height: 40px;
    width: auto;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.dark .page-title {
    color: white;
}

.login-text {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin: 0;
}

.dark .login-text {
    color: #d1d1d1;
}

.login-text a {
    color: #5028a0;
    text-decoration: underline;
    font-weight: 600;
}

.dark .login-text a {
    color: #7c3aed;
}

.registration-form {
    position: relative;
    z-index: 1;
}

.registration-form .fi-fo-field-wrp {
    margin-bottom: 1.25rem;
}

.form-actions {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.submit-button {
    background: #5028a0 !important;
    color: white !important;
    font-weight: 600;
}

.submit-button:hover {
    background: #7c3aed !important;
}

.dark .submit-button {
    background: #7c3aed !important;
}

.dark .submit-button:hover {
    background: #5028a0 !important;
}

@media (max-width: 1024px) {
    .signup-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .signup-sidebar-container {
        margin: 0;
    }

    .signup-form-container {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}