﻿/* ---------- Root colors & font sizes ---------- */
:root {
    --main-color: #0D898C;
    --field-font-size: 16px;
}
@font-face {
    font-family: "Tajawal";
    src: url("/Content/fonts/Tajawal/Tajawal-Regular.woff") format("woff");
    font-weight: 400;
}

/* ---------- Global layout ---------- */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Tajawal", sans-serif;
    min-height: 100vh;
     margin: 0;
   
}

/* particles background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #021b1b;
}

/* container centering */
.min-h-screen {
    min-height: 100vh;
}

/* ---------- Login card ---------- */
.login-card {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 10px auto;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-wrap: wrap;
}

/* remove Bootstrap float inside card */
    .login-card > [class*="col-"] {
        float: none;
    }

/* desktop: form + brand side by side */
@media (min-width: 992px) {
    body.lang-en .login-card {
        flex-direction: row; 
    }

    body.lang-ar .login-card {
        flex-direction: row-reverse; 
    }

    .login-card > .col-md-6 {
        width: 50%;
    }
}

/* tablet & mobile: stack vertically */
@media (max-width: 991px) {
    .login-card {
        flex-direction: column;
        max-width: 100%;
        margin: 10px;
    }

        .login-card > .col-md-6 {
            width: 100%;
        }
}

/* form side padding */
.login-card .col-md-6.bg-white {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* smaller padding on small screens */
@media (max-width: 767px) {
    .login-card .col-md-6.bg-white, .brand-side {
        padding: 22px 14px;
    }

    .login-card {
        margin: 10px;
    }
}
/* language-bar */
.language-bar {
    position: absolute;
    top: 16px;
    z-index: 50;
}

body.lang-ar .language-bar {
    right: 16px;
    left: auto;
}

body.lang-en .language-bar {
    left: 16px;
    right: auto;
}

/* @media */
@media (max-width: 480px) {
    .language-bar {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
}

/*lang */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}


.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    color: #0f172a;
    transition: all 0.2s ease;
}

    .lang-btn img {
        width: 16px;
        height: 16px;
        border-radius: 999px;
        box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.8);
    }

    .lang-btn.active {
        background-color: #0d898c;
        color: #ffffff;
        transform: translateY(-1px) scale(1.05);
        box-shadow: 0 10px 25px rgba(13, 137, 140, 0.55);
    }

    .lang-btn:not(.active):hover {
        background-color: #e5f3f3;
    }
/* ---------- Welcome block ---------- */
.text-NqGreen {
    color: black;
    margin-bottom: 15px !important;
    font-weight:700;
    font-size:1.2rem;
}

.mb-4 {
    margin-bottom: 1.9rem;
}

/* ---------- Fields & icons ---------- */
.input-field {
    position: relative;
    margin-bottom: 18px;
}

    /* base inputs */
    .input-field input,
    .input-field select,
    .form-control {
        width: 100%;
        height: 52px; /* taller fields */
        border-radius: 10px;
        border: 1px solid #d9dde5;
        background-color: #ffffff;
        font-size: var(--field-font-size);
        transition: 0.2s;
    }

/* RTL padding */
body.lang-ar .input-field input,
body.lang-ar .input-field select,
body.lang-ar .form-control {
    padding-right: 52px;
    padding-left: 16px;
    text-align: right;
    direction: rtl;
}

/* LTR padding */
body.lang-en .input-field input,
body.lang-en .input-field select,
body.lang-en .form-control {
    padding-left: 52px;
    padding-right: 16px;
    text-align: left;
    direction: ltr;
}

/* placeholder */
.input-field input::placeholder {
    font-size: var(--field-font-size);
    color: #4b5563;
}

/* field icon */
.input-field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--main-color);
}

body.lang-ar .input-field i {
    right: 18px;
    left: auto;
}

body.lang-en .input-field i {
    left: 18px;
    right: auto;
}

/* unified hover/focus */
.input-field input:hover,
.input-field input:focus,
.input-field select:hover,
.input-field select:focus,
.form-control:hover,
.form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(13, 137, 140, 0.15);
    background-color: #eef6ff;
    transform: translateY(-1px);
    outline: none;
}

/* ---------- Select2 styling ---------- */
.input-field .select2-container {
    width: 100% !important;
}

.input-field .select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 1px solid #d9dde5 !important;
    height: 52px !important;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    transition: 0.2s;
}

.input-field .select2-selection__rendered {
    font-size: var(--field-font-size);
    color: #4b5563;
}

/* RTL select2 padding & arrow */
body.lang-ar .input-field
.select2-container--default .select2-selection--single {
    padding-right: 52px !important;
    padding-left: 35px !important;
    text-align: right;
}

    body.lang-ar .input-field
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        left: 12px;
        right: auto;
    }

/* LTR select2 padding & arrow */
body.lang-en .input-field
.select2-container--default .select2-selection--single {
    padding-left: 52px !important;
    padding-right: 35px !important;
    text-align: left;
}

    body.lang-en .input-field
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        right: 12px;
        left: auto;
    }

/* select2 dropdown */
.select2-search.select2-search--dropdown {
    display: none !important;
}

.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background-color: var(--main-color);
    color: #fff;
}

/* same hover for select2 */
.input-field .select2-container--default .select2-selection--single:hover,
.input-field .select2-container--default .select2-selection--single:focus,
.input-field .select2-container--default.select2-container--open .select2-selection--single,
.input-field .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--main-color) !important;
    box-shadow: 0 0 0 2px rgba(13, 137, 140, 0.15) !important;
    background-color: #eef6ff !important;
    transform: translateY(-1px);
}


/* ---------- Login button ---------- */
.btn-login {
    border-radius: 30px;
    font-weight: 700;
    border: none;
    background-color: var(--main-color);
    padding: 12px;
    font-size: 18px;
    text-transform: uppercase;
    transition: 0.2s;
    color: black !important;
    display: block;
    width: 100%;
    margin-top: 30px; 
}


body.lang-ar .btn-login i {
    margin-left: 6px;
    color:black;
}

body.lang-en .btn-login i {
    margin-right: 6px;
}

.btn-login:hover,
.btn-login:focus {
    background-color: #0a6b6e;
    outline: none;
}
html {
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) #021b1b;
}

::-webkit-scrollbar {
    width: 8px; 
}

::-webkit-scrollbar-track {
    background: #021b1b; 
}

::-webkit-scrollbar-thumb {
    background: var(--main-color); 
    border-radius: 999px; 
}

    ::-webkit-scrollbar-thumb:hover {
        background: #0a6b6e; 
    }

/*change sides when lang change*/
.login-card {
    display: flex;
    flex-wrap: wrap;
}

 .login-card > [class*="col-"] {
        float: none !important;
  }

body.lang-ar .form-side {
    order: 1;
}

body.lang-ar .brand-side {
    order: 2;
}


body.lang-en .form-side {
    order: 2;
}

body.lang-en .brand-side {
    order: 1;
}


@media (max-width: 767px) {
    .login-card {
        flex-direction: column;
    }

    body.lang-ar .form-side,
    body.lang-ar .brand-side,
    body.lang-en .form-side,
    body.lang-en .brand-side {
        order: 0; 
    }
}
/* Brand column (logo side) */
.brand-side {
    min-height: 340px;
    background: linear-gradient(135deg, #0E4089, #0D898C);
    color: #ffffff;
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 22px 20px;
}

/* Inner wrapper under brand side */
.brand-side-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo card with rounded corners and soft float animation */
.brand-logo-box {
    position: relative;
    /* Responsive: fills column width up to 360px max */
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: clamp(18px, 3.5vw, 28px) clamp(16px, 3vw, 24px);
    border-radius: 36px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: floatLogo 4s ease-in-out infinite;
    will-change: transform;
}

    /* Inner white card behind logo image */
    .brand-logo-box::before {
        content: "";
        position: absolute;
        inset: 14px;
        border-radius: 28px;
        background: #ffffff;
        opacity: 0.96;
    }

    /* Logo image */
    .brand-logo-box img {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

/* Footer text under logo */
.brand-footer {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    transform: none;
    margin: 0;
    padding-bottom: 4px;
    opacity: 0.9;
    font-size: 0.85rem;
    text-align: center;
}

/* Floating animation for logo card */
@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Login card width */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%; 
    max-width: 1000px; 
    margin: 20px auto; 
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-wrap: wrap;
}

/* Form / brand width on desktop */
@media (min-width: 992px) {
    .login-card > .form-side {
        width: 56%; 
    }
    .login-card > .brand-side {
        width: 44%; 
    }
}
/* Reduce form vertical spacing */
.form-side {
    padding: 32px 42px !important; 
}
    .form-side form {
        margin-top: 32px !important; 
    }
/* Tablet layout: iPad / 768–991px */
@media (min-width: 768px) and (max-width: 991px) {

    /* put form + brand side-by-side */
    .login-card {
        flex-direction: row; /* override column */
        max-width: 100%;
        margin: 20px auto;
    }
        .login-card > .form-side {
            width: 56%; 
        }

        .login-card > .brand-side {
            width: 44%; 
        }
    /* reduce brand height on tablets */
    .brand-side {
        min-height: 280px;
        padding: 18px 16px;
    }

    .brand-logo-box {
        max-width: 300px;
        padding: 18px 18px;
    }

    /* reduce form spacing a bit on tablets */
    .form-side {
        padding: 28px 32px !important;
    }

        .form-side form {
            margin-top: 24px !important;
        }
}
