:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --font-family: 'Cairo', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f0f2f5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    min-height: 600px;
}

.auth-sidebar {
    width: 45%;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDBDNDQuOCAwIDAgNDQuOCAwIDEwMHM0NC44IDEwMCAxMDAgMTAwIDEwMC00NC44IDEwMC0xMDBTMTU1LjIgMCAxMDAgMHptMCA0OWMyOC4yIDAgNTEgMjIuOCA1MSA1MXMtMjIuOCA1MS01MSA1MS01MS0yMi44LTUxLTUxIDIyLjgtNTEgNTEtNTF6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPjwvc3ZnPg==') repeat;
    opacity: 0.1;
    animation: bg-slide 20s linear infinite;
}

@keyframes bg-slide {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

.auth-sidebar h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.auth-sidebar p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    z-index: 1;
}

.auth-illustration-img {
    max-width: 80%;
    margin-top: 2rem;
    z-index: 1;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

.auth-content {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-header h3 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--secondary-color);
}

.form-floating > .form-control {
    border-radius: 10px;
    border: 2px solid #eaecf4;
    padding-left: 1.5rem; /* For RTL support, this might need adjustment via [dir="rtl"] */
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

[dir="rtl"] .form-floating > .form-control {
    padding-right: 1.5rem;
    padding-left: 0.75rem;
}

[dir="rtl"] .form-floating > label {
    right: 0;
    left: auto;
    padding-right: 1.5rem;
    padding-left: 0.75rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
}

.social-auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--secondary-color);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eaecf4;
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .auth-sidebar {
        width: 100%;
        padding: 30px;
        display: none; /* Hide sidebar on mobile for cleaner look, or keep it */
    }

    .auth-content {
        width: 100%;
        padding: 30px;
    }
}
