/*==========================
Rak-Mrigle Auth - Split Screen Design
===========================*/

/* Global overrides for Auth Pages */
body.auth-page {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
}

body.auth-page .main-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* Hide navigation, sidebar, and footer on auth pages */
body.auth-page .navbar,
body.auth-page .sidebar,
body.auth-page footer,
body.auth-page .overlay {
    display: none !important;
}

.split-auth-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Branding Side */
.auth-branding-side {
    flex: 0 0 35%;
    background-color: var(--brand-primary, #0B1E3B);
    position: relative;
    overflow: hidden;
    color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 2rem;
}

.branding-logo-main {
    width: 200px !important;
    height: auto !important;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
    display: block;
}

.branding-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.4;
    opacity: 0.95;
    text-align: center;
    color: #FFFFFF !important;
}

/* Form Side */
.auth-form-side {
    flex: 0 0 65%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    z-index: 5;
    padding: 2rem;
}

/* Input Styles */
.industrial-input {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    height: 45px; /* Reduced from 55px */
    padding: 0 12px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.auth-form-side {
    flex: 0 0 65%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    z-index: 5;
    padding: 1.5rem 2rem; /* Reduced padding */
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0; /* Reduced from 25px */
    color: #94A3B8;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.row.g-4 {
    --bs-gutter-y: 1.25rem !important; /* Reduced row spacing */
}


[dir="rtl"] .industrial-input {
    text-align: right !important;
}

[dir="ltr"] .industrial-input {
    text-align: left !important;
}

.form-label {
    font-weight: 700 !important;
    color: #64748B !important;
    margin-bottom: 8px !important;
    display: block;
}

[dir="rtl"] .form-label {
    text-align: right !important;
}

[dir="ltr"] .form-label {
    text-align: left !important;
}


[dir="ltr"] .split-auth-container {
    flex-direction: row !important;
}

/* Form Titles */
.auth-form-side h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Password Toggle Icon Alignment */
[dir="rtl"] .auth-form-side .position-relative .btn-transparent {
    right: auto !important;
    left: 10px !important;
}

[dir="ltr"] .auth-form-side .position-relative .btn-transparent {
    left: auto !important;
    right: 10px !important;
}

/* Fix "?Forgot" placement for RTL */
[dir="rtl"] .d-flex.justify-content-between.mb-2 {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .d-flex.justify-content-between.mb-2 .form-label {
    text-align: right !important;
    margin-right: 0 !important;
}

[dir="rtl"] .d-flex.justify-content-between.mb-2 a {
    text-align: left !important;
}

/* Social Login minimal style overrides */
.btn-social {
    color: #64748B !important;
    font-weight: 700 !important;
}

.btn-social:hover {
    border-color: var(--brand-accent, #D97706) !important;
    color: var(--brand-primary, #0B1E3B) !important;
}

/* Desktop Layout Configuration */
@media (min-width: 992px) {
    .split-auth-container {
        display: flex !important;
        width: 100vw !important;
        height: 100vh !important;
        flex-wrap: nowrap !important;
    }

    .auth-branding-side {
        flex: 0 0 35% !important;
        width: 35% !important;
    }

    .auth-form-side {
        flex: 0 0 65% !important;
        width: 65% !important;
    }
}

/* Shared Auth Styles */
.social-login-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    color: #64748B;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.btn-social:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #334155;
    transform: translateY(-1px);
}

.btn-google img {
    width: 16px;
}

.btn-facebook {
    border-color: #E2E8F0;
    color: #64748B;
}

.btn-facebook i {
    color: #1877F2;
    font-size: 0.9rem;
}

.btn-transparent i {
    color: var(--brand-accent, #D97706) !important;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #94A3B8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #F1F5F9;
}

.social-divider:not(:empty)::before {
    margin-right: 1.5rem;
}

.social-divider:not(:empty)::after {
    margin-left: 1.5rem;
}

.btn-dark-blue {
    background: var(--brand-primary, #0B1E3B);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 700;
}

.btn-dark-blue:hover {
    background: var(--brand-secondary, #0F172A);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 30, 59, 0.2);
}

.text-accent {
    color: var(--brand-accent, #D97706) !important;
}

.text-dark-blue {
    color: var(--brand-primary, #0B1E3B) !important;
}

.geo-pattern i {
    opacity: 0.1;
}

.btn-transparent .fa-eye, 
.btn-transparent .fa-eye-slash {
    font-size: 0.9rem;
    color: #94A3B8;
}

/* Responsive Improvements */
@media (max-width: 991.98px) {
    body.auth-page {
        overflow-y: auto !important;
        height: auto !important;
    }
    
    .split-auth-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh;
        width: 100% !important;
    }
    
    .auth-branding-side {
        display: none !important;
    }
    
    .auth-form-side {
        flex: 1 0 auto !important;
        width: 100% !important;
        padding: 3rem 1.5rem !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .auth-form-side h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-side {
        padding: 2.5rem 1rem !important;
    }
    
    .social-login-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-social {
        width: 100%;
        padding: 12px;
    }
    
    .industrial-input {
        height: 50px;
    }
    
.social-divider {
margin: 20px 0;
}
}

.role-selector {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

.role-option {
flex: 1;
min-width: 150px;
}

.role-label {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px 15px;
border: 2px solid #E2E8F0;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
background: #F8FAFC;
text-align: center;
}

.role-label:hover {
border-color: var(--brand-accent, #D97706);
background: #fff;
}

.role-option.selected .role-label {
border-color: var(--brand-primary, #0B1E3B);
background: #fff;
box-shadow: 0 4px 15px rgba(11, 30, 59, 0.1);
}

.role-icon {
font-size: 2rem;
color: var(--brand-accent, #D97706);
margin-bottom: 10px;
transition: transform 0.3s ease;
}

.role-option.selected .role-icon {
transform: scale(1.1);
}

.role-label span {
font-weight: 700;
color: var(--brand-primary, #0B1E3B);
font-size: 1rem;
margin-bottom: 5px;
}

.role-label small {
color: #64748B;
font-size: 0.75rem;
}

[dir="rtl"] .role-label {
text-align: center;
}

.driver-license-field {
animation: slideDown 0.3s ease;
}

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

[dir="rtl"] .role-selector {
flex-direction: row-reverse;
}

@media (max-width: 575.98px) {
.role-selector {
flex-direction: column;
}

.role-option {
min-width: 100%;
}

.role-label {
padding: 15px;
}

.role-icon {
font-size: 1.5rem;
}
}

