/* Import Google Fonts for perfect typography */

:root {
    --primary-green: #2d3e5e; /* #198754;*/
    --primary-green-hover: #8297b5; /* #157347;*/
    --primary-color: #2d3e5e; /* #274f44;*/
    --primary-color-dark: #1e3d34;
    --primary-color-hover: #8297b5; /* #2d5f52;*/
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #212529;
    --text-muted: #6c757d;
    --border-gray: #dee2e6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    color: var(--dark-gray);
    overflow-x: hidden;
}

    /* RTL Support */
    body.rtl {
        direction: rtl;
    } body.rtl .language-selector {
            left: 1.5rem;
            right: auto;
        } body.rtl .password-input-group .toggle-password {
            left: 0.6rem;
            right: auto;
        } body.rtl .password-input-group .form-control {
            padding-left: 2.5rem;
            padding-right: 0.6rem;
        } body.rtl .logo-section {
            text-align: center;
        } body.rtl .login-footer {
            text-align: right;
        } body.rtl .login-wrapper {
            flex-direction: row-reverse;
        } body.rtl .login-form-section {
            order: 2;
        } body.rtl .promo-section {
            order: 1;
        } body.rtl .register-link {
            text-align: center;
        }
    /* Language Selector - Top Right (Left in RTL) */
    .language-selector {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
} .language-selector .dropdown-toggle {
        background: var(--white);
        border: 1px solid var(--border-gray);
        border-radius: 20px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--dark-gray);
        box-shadow: var(--shadow-light);
        display: flex;
        align-items: center;
        gap: 0.4rem;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    /* Remove default Bootstrap dropdown arrow */
    .language-selector .dropdown-toggle::after {
            display: none !important;
        } .language-selector .dropdown-toggle:hover {
            background: var(--light-gray);
            border-color: var(--text-muted);
        } .language-selector .dropdown-toggle img {
            width: 18px;
            height: 13px;
            border-radius: 2px;
        } .language-selector .dropdown-toggle .bi-chevron-down {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-left: 0.2rem;
        } .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 140px;
    padding: 0.4rem 0;
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--dark-gray);
    text-align: left;
    list-style: none;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    box-shadow: var(--shadow);
} .dropdown-menu.show {
        display: block;
    } .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: background-color 0.2s ease;
} .dropdown-item:hover {
        background-color: var(--light-gray);
        color: var(--dark-gray);
    } .dropdown-item img {
        width: 18px;
        height: 13px;
        border-radius: 2px;
    }
    /* Main Login Container - Two Column Layout */
    .login-container {
    flex: 1;
    min-height: 100vh;
    display: flex;
    padding: 0;
} .login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
    /* Left Column - Login Form Section */
    .login-form-section {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
} .login-form-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
    /* Right Column - Promotional Section */
    .promo-section {
    flex: 1;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
    /* Flowing Organic Shapes Background */
    .promo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Top flowing wave */
        radial-gradient(ellipse 1200px 400px at 50% -150px, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        /* Bottom flowing wave */
        radial-gradient(ellipse 1400px 500px at 50% calc(100% + 200px), rgba(255, 255, 255, 0.06) 0%, transparent 60%),
        /* Left organic shape */
        radial-gradient(ellipse 700px 700px at -300px 40%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
        /* Right organic shape */
        radial-gradient(ellipse 800px 800px at calc(100% + 200px) 60%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
} .promo-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Flowing curved lines - top left */
        url("data:image/svg+xml,%3Csvg width='600' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.04' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0,100 Q150,50 300,100 T600,100'/%3E%3Cpath d='M0,200 Q200,150 400,200 T600,200'/%3E%3Cpath d='M50,0 Q100,150 150,300 Q200,450 250,600'/%3E%3C/g%3E%3C/svg%3E"),
        /* Flowing curved lines - bottom right */
        url("data:image/svg+xml,%3Csvg width='500' height='500' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.03' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0,400 Q250,350 500,400'/%3E%3Cpath d='M100,0 Q200,250 300,500'/%3E%3Cpath d='M0,300 Q150,250 300,300 Q450,350 500,300'/%3E%3C/g%3E%3C/svg%3E"),
        /* Organic flowing shapes */
        url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.025' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M50,50 Q100,30 150,50 T250,50'/%3E%3Cpath d='M100,150 Q150,130 200,150 T300,150'/%3E%3Cpath d='M150,250 Q200,230 250,250 T350,250'/%3E%3Cpath d='M200,350 Q250,330 300,350'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 800px 800px, 700px 700px, 500px 500px;
    background-position: -100px -100px, calc(100% + 50px) calc(100% - 100px), 200px 300px;
    background-repeat: no-repeat;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    animation: flowingShapes 35s ease-in-out infinite;
} @keyframes flowingShapes {
    0%, 100% {
        background-position: -100px -100px, calc(100% + 50px) calc(100% - 100px), 200px 300px;
        opacity: 0.7;
    }
    50% {
        background-position: -80px -80px, calc(100% + 70px) calc(100% - 80px), 220px 320px;
        opacity: 0.5;
    }
} .promo-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    position: relative;
    z-index: 1;
}
    /* Logo Section */
    .logo-section {
    text-align: center;
    margin-bottom: 2rem;
} .logo-img {
    max-height: 150px; /* 60px; */
    width: auto;
}
    /* Login Title and Subtitle */
    .login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1.2;
} .login-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}
    /* Login Card */
    .login-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    border: none;
}
    /* Form Fields */
    .mb-3 {
    margin-bottom: 1.25rem;
} .form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
} .form-label i {
        color: var(--primary-green);
        font-size: 1rem;
    }
    /* Input Fields - Clean styling without input groups */
    .form-control {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background: var(--white);
    color: var(--dark-gray);
    font-family: inherit;
    transition: all 0.2s ease;
} .form-control:focus {
        outline: none;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.1);
    } .form-control::placeholder {
        color: var(--text-muted);
        font-weight: 400;
    }
    /* Password Field with Toggle */
    .password-input-group {
    position: relative;
    display: flex;
    align-items: center;
} .password-input-group .form-control {
        padding-right: 2.5rem;
    } .toggle-password {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    padding: 0.4rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
} .toggle-password:hover {
        color: var(--primary-green-hover);
    }
    /* Form Options */
    .d-flex.justify-content-between {
    margin-bottom: 1.25rem;
} .form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
} .form-check-input {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
} .form-check-input:checked {
        background-color: var(--primary-green);
        border-color: var(--primary-green);
    } .form-check-input:focus {
        box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.1);
    } .form-check-label {
    color: var(--dark-gray);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}
    /* RTL Support for Form Check */
    body.rtl .form-check {
    flex-direction: row-reverse !important;
    gap: 0.4rem;
} body.rtl .form-check-input {
    order: 2 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
} body.rtl .form-check-label {
    order: 1 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
    /* Additional RTL fixes for checkbox positioning */
    body.rtl .form-check {
    direction: rtl;
    text-align: right;
} body.rtl .form-check-input {
    float: right;
    margin-left: 0.4rem;
    margin-right: 0;
}
    /* Ensure checkbox and label are properly separated in RTL */
    body.rtl .form-check {
    display: flex;
    align-items: center;
    justify-content: flex-end;
} body.rtl .form-check-input {
    margin-left: 0.4rem;
    margin-right: 0;
    order: 2;
} body.rtl .form-check-label {
    order: 1;
    margin-right: 0;
    margin-left: 0;
} .forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
} .forgot-password:hover {
        color: var(--primary-color-dark);
    }
    /* Register Link */
    .register-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
} .register-link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
} .register-link-text:hover {
    color: var(--primary-color-dark);
}
    /* Login Footer */
    .login-footer {
    margin-top: 2rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
} .login-footer p {
    margin: 0;
}
    /* Buttons */
    .d-grid {
    margin-bottom: 1rem;
} .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-gray);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}
    /* Google Sign In Button */
    .btn-google {
    background: var(--white);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
} .btn-google:hover {
    background: var(--light-gray);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} .google-icon {
    width: 18px;
    height: 18px;
}
    /* Primary Login Button */
    .btn-primary-login {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
} .btn-primary-login:hover {
    background: var(--primary-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 79, 68, 0.3);
} .btn-success {
    background: var(--primary-green);
    color: var(--white);
} .btn-success:hover {
        background: var(--primary-green-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    } .btn-outline-secondary {
    background: var(--white);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
} .btn-outline-secondary:hover {
        background: var(--light-gray);
        border-color: var(--text-muted);
        color: var(--dark-gray);
    }
    /* Divider */
    .divider {
    color: var(--text-muted);
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 400;
} .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border-gray);
        transform: translateY(-50%);
    } .divider span {
        background: var(--white);
        padding: 0 1rem;
        color: var(--text-muted);
        position: relative;
        z-index: 1;
    }
    /* Promotional Section Styles */
    .promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
} .promo-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    line-height: 1.6;
} .promo-image-container {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
} .promo-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: brightness(0) invert(1);
} .promo-cta {
    /*font-size: 2rem;*/
    font-size: 29px;
    font-weight: 700;
    color: var(--white);
    margin: 2rem 0 0.5rem 0;
} .promo-feature {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}
    /* Footer */
    .footer {
    background: var(--white);
    border-top: 1px solid var(--border-gray);
    padding: 1.25rem 1rem;
    margin-top: auto;
} .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.8rem;
} .footer-section {
    text-align: center;
    flex: 1;
    min-width: 180px;
    color: var(--text-muted);
} .footer-section a {
        color: var(--text-muted);
        text-decoration: none;
        margin: 0 0.4rem;
        transition: color 0.2s ease;
    } .footer-section a:hover {
            color: var(--primary-green);
        }
    /* Contact Icon Styling */
    .footer-section .bi-headphones {
        color: var(--primary-green);
        font-size: 0.8rem;
        margin-right: 0.3rem;
    } body.rtl .footer-section .bi-headphones {
    margin-right: 0;
    margin-left: 0.3rem;
}
    /* Responsive Design */
    @media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-form-section {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .promo-section {
        min-height: 400px;
        padding: 2rem 1.5rem;
    }

    .promo-title {
        font-size: 2rem;
    }

    .promo-cta {
        font-size: 1.5rem;
    }

    .promo-image-container {
        margin: 2rem 0;
        min-height: 200px;
    }

    body.rtl .login-wrapper {
        flex-direction: column-reverse;
    }
} @media (max-width: 768px) {
    .login-container {
        min-height: 100vh;
    }

    .login-form-section {
        padding: 1.5rem 1rem;
    }

    .promo-section {
        min-height: 350px;
        padding: 1.5rem 1rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .promo-title {
        font-size: 1.75rem;
    }

    .promo-description {
        font-size: 0.9rem;
    }

    .promo-cta {
        font-size: 1.25rem;
    }

    .promo-feature {
        font-size: 0.9rem;
    }

    .promo-image-container {
        margin: 1.5rem 0;
        min-height: 150px;
    }

    body.rtl .login-wrapper {
        flex-direction: column-reverse;
    }

    .language-selector {
        top: 1rem;
        right: 1rem;
    }

    body.rtl .language-selector {
        left: 1rem;
        right: auto;
    }

    .language-selector .dropdown-toggle {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
}
    /* Tablet and iPad specific styles */
    @media (min-width: 769px) and (max-width: 1024px) {
    .language-selector .dropdown-toggle {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        border-radius: 25px;
    }

    .language-selector .dropdown-toggle img {
        width: 22px;
        height: 16px;
    }

    .language-selector .dropdown-toggle .bi-chevron-down {
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 160px;
        padding: 0.6rem 0;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .dropdown-item img {
        width: 22px;
        height: 16px;
    }
} @media (max-width: 480px) {
    .login-form-section {
        padding: 1rem 0.75rem;
    }

    .promo-section {
        padding: 1rem 0.75rem;
        min-height: 300px;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-description {
        font-size: 0.85rem;
    }

    .promo-cta {
        font-size: 1.1rem;
    }

    .promo-feature {
        font-size: 0.85rem;
    }

    .logo-img {
        max-height: 50px;
    }

    .btn {
        padding: 0.65rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .form-control {
        min-height: 44px;
        padding: 0.6rem;
    }

    .promo-image-container {
        margin: 1rem 0;
        min-height: 120px;
    }
}
    /* Animation */
    .login-card {
    animation: slideUp 0.6s ease-out;
} @keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    /* Focus states for accessibility */
    .form-control:focus:not(.input-validation-error), .btn:focus, .form-check-input:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}
    /* Loading state for buttons */
    .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
    /* Custom Spinner */
    .spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
} .spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.125em;
} @keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
    /* Utility Classes */
    .me-2 {
    margin-right: 0.5rem !important;
} .ms-1 {
    margin-left: 0.25rem !important;
}
    /* Bootstrap Utility Classes */
    .d-flex {
    display: flex !important;
} .align-items-center {
    align-items: center !important;
} .justify-content-between {
    justify-content: space-between !important;
} .justify-content-center {
    justify-content: center !important;
} .text-center {
    text-align: center !important;
} .mb-3 {
    margin-bottom: 1rem !important;
} .mb-4 {
    margin-bottom: 1.5rem !important;
} .d-grid {
    display: grid !important;
}
    /* Validation */
    .text-danger {
    display: none !important; /* Hide default validation messages */
}
    /* Input validation states */
    .form-control.input-validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
} .form-control.input-validation-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
    outline: 2px solid #dc3545 !important;
    outline-offset: 2px !important;
}
    /* Hide ASP.NET Core validation summary */
    .validation-summary-errors {
    display: none !important;
}
    /* Hide individual field validation messages */
    .field-validation-error {
    display: none !important;
}
    /* Bootstrap Icons Styling */
    .bi {
    display: inline-block;
    font-family: "bootstrap-icons";
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: text-bottom;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
