/* =========================================================
   DRIVO LOGIN + SIGN UP
   Common Responsive Styles
   ========================================================= */

/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE WRAPPER
   ========================================================= */

.master-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: #f4f6f9;
}


/* =========================================================
   SPLIT LOGIN / SIGNUP CONTAINER
   ========================================================= */

.split-login-container {
    width: min(100%, 1100px);
    min-width: 0;
    min-height: 480px;

    display: flex;

    background: #ffffff;
    overflow: hidden;

    border-radius: 0;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   LEFT PANEL
   ========================================================= */

.left-panel {
    position: relative;

    flex: 1 1 50%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    color: #ffffff;

    background-color: #1e293b;
    background:
        linear-gradient(rgba(2, 6, 10, 0.75),
            rgb(31 31 31 / 75%)),
        url("/images/loginbackground2.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Decorative glow */

.left-panel::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 80%;
    height: 80%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(circle at center,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 70%);

    z-index: 0;

    filter: blur(50px);

    pointer-events: none;
}


/* =========================================================
   LEFT PANEL CONTENT
   ========================================================= */

.content-wrapper {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 500px;

    min-width: 0;

    text-align: left;
}


.welcome-headline {
    width: 100%;

    margin: 0 0 1.5rem;

    font-family: "Playfair Display", serif;
    font-weight: 700;

    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;

    white-space: nowrap;

    overflow-wrap: break-word;
}


.welcome-text {
    width: 100%;
    max-width: 400px;

    margin: 0;

    font-size: 1rem;
    line-height: 1.6;

    opacity: 0.9;

    overflow-wrap: break-word;
}


/* =========================================================
   RIGHT PANEL
   ========================================================= */

.right-panel {
    flex: 1 1 50%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background-color: #ffffff;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 450px;
    min-width: 0;

    padding: 2rem;

    border: none;

    background: transparent;
}


/* =========================================================
   LOGIN TITLE
   ========================================================= */

.sign-in-title {
    width: 100%;

    margin: 0 0 2.5rem;

    font-size: 2.2rem;
    font-weight: 700;

    color: #1e293b;
}


/* =========================================================
   FORM WIDTH SAFETY
   ========================================================= */

.login-card form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.login-card .input-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.login-card .form-control,
.login-card select {
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   LOGIN INPUT GROUP
   ========================================================= */

.login-card .input-group {
    position: relative;

    display: flex;
    align-items: stretch;

    background-color: #fbfbfb;

    border: 1px solid #e1e1e1;
    border-radius: 50px;

    overflow: hidden;
}


/* Focus */

.login-card .input-group:focus-within {
    border-color: #27a5ee !important;

    box-shadow:
        0 0 0 2px rgba(17, 63, 103, 0.1);
}


/* =========================================================
   INPUT GROUP ICON
   ========================================================= */

.login-card .input-group-text {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: transparent;

    border: none;

    color: #a0a0a0;

    padding-left: 1.5rem;
    padding-right: 0.75rem;
}


/* Icon focus */

.login-card .input-group:focus-within .input-group-text {
    color: #1e293b;
}


/* =========================================================
   FORM CONTROL
   ========================================================= */

.login-card .form-control {
    width: 100%;
    min-width: 0;

    flex: 1 1 auto;

    background-color: transparent;

    border: none;

    color: #333333;

    font-size: 1rem;

    padding: 0.8rem 1rem;
}


/* Remove Bootstrap focus */

.login-card .form-control:focus {
    background-color: transparent;

    border: none;

    outline: none;

    box-shadow: none;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.login-card .input-group .form-control:focus {
    border-color: transparent !important;

    outline: none;

    box-shadow: none;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
    flex-shrink: 0;

    cursor: pointer;
    user-select: none;

    color: #a0a0a0;

    padding-right: 1.5rem;

    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #1e293b;
}


/* =========================================================
   FORM OPTIONS
   ========================================================= */

.options-row {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    justify-content: space-between;

    gap: 10px;

    color: #777777;

    font-size: 0.9rem;
}


.form-check-label {
    margin-left: 0.5rem;
}


.form-check-input:checked {
    background-color: #1e293b;
    border-color: #1e293b;
}


.forgot-link,
.create-link {
    color: #1e293b;

    text-decoration: none;

    font-weight: 500;
}


.forgot-link:hover,
.create-link:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.btn-login {
    width: 100%;
    max-width: 100%;

    padding: 0.8rem;

    background-color: #1e293b;

    border: none;
    border-radius: 50px;

    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 700;

    transition: background-color 0.3s ease;
}


.btn-login:hover {
    background-color: #1e293b;
    color: #ffffff;
}


/* =========================================================
   CUSTOM PRIMARY BUTTON
   ========================================================= */

.btn-primary-custom {
    width: 100%;
    max-width: 100%;

    background-color: #1a252f;

    border: none;

    padding: 12px;

    font-weight: 600;

    transition:
        background-color 0.3s ease,
        opacity 0.3s ease;
}


.btn-primary-custom:hover {
    background-color: #6b747c;
}


/* =========================================================
   LOGIN BUTTON STATES
   ========================================================= */

#loginButton {
    width: 100%;
    max-width: 100%;
}


#loginButton:disabled {
    background-color: #1a252f !important;
    color: #ffffff !important;

    opacity: 0.8;

    cursor: not-allowed;
}


#loginButton:focus,
#loginButton:active,
#loginButton:focus-visible {
    background-color: #1a252f !important;

    color: #ffffff !important;

    border-color: #1a252f !important;

    box-shadow:
        0 0 0 0.2rem rgba(26, 37, 47, 0.25) !important;
}


/* =========================================================
   OTHER LOGIN TEXT
   ========================================================= */

.new-here-text {
    font-size: 0.9rem;

    color: #777777;
}


.login-title {
    font-optical-sizing: auto;

    font-style: normal;

    color: #43484c;

    font-size: 1.75rem;

    text-align: center;

    margin-bottom: 1.5rem;
}


/* =========================================================
   CUSTOM USER / COMPANY DROPDOWN
   ========================================================= */

.custom-user-group {
    position: relative;

    width: 100%;
    min-width: 0;

    overflow: visible !important;
}


.custom-dropdown {
    position: relative;

    width: 100%;
    min-width: 0;

    flex: 1 1 auto;
}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.dropdown-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 44px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8px;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;
}


/* =========================================================
   SELECTED USER
   ========================================================= */

.selected-user {
    display: flex;
    align-items: center;

    flex: 1 1 auto;

    min-width: 0;

    gap: 12px;

    text-align: left;
}


/* =========================================================
   AVATAR
   ========================================================= */

.avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;

    margin-right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background: #1e293b;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}


.avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.selected-user .avatar.d-none {
    display: none !important;
}


/* =========================================================
   SELECTED TEXT
   ========================================================= */

#selectedText,
#selectedCompanyText {
    flex: 1;

    min-width: 0;

    color: #333333;

    font-size: 0.875rem;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   USER ITEM TEXT
   ========================================================= */

.user-name {
    min-width: 0;

    color: #1e293b;

    font-size: 0.875rem;
    font-weight: 600;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================================
   USER AVATAR IN DROPDOWN
   ========================================================= */

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background: #1e293b;

    color: #ffffff;

    font-weight: 600;
}


.user-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   DROPDOWN ARROW
   ========================================================= */

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.dropdown-menu-custom {
    position: absolute;

    top: calc(100% + 6px);

    left: 0;
    right: 0;

    width: 100%;
    max-width: 100%;

    background: #ffffff;

    border: 1px solid #e6e6e6;

    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12);

    display: none;

    z-index: 9999;

    max-height: 180px;

    overflow-y: auto;
}


.custom-dropdown.open .dropdown-menu-custom {
    display: block;
}


/* =========================================================
   DROPDOWN LOADING
   ========================================================= */

.dropdown-loading {
    padding: 15px;

    text-align: center;

    color: #888888;

    font-size: 14px;
}


/* =========================================================
   DROPDOWN ITEMS
   ========================================================= */

.user-item {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 16px;

    cursor: pointer;

    transition: background-color 0.2s ease;
}


.user-item:hover {
    background: #f7f7f7;
}


/* =========================================================
   SELECT / OLD SELECT SUPPORT
   ========================================================= */

#username {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-image: none !important;

    padding-right: 10px !important;
}


#company_id option {
    background-color: #ffffff;

    color: #333333;

    padding: 10px;

    font-size: 15px;
}


/*
   These rules intentionally remain scoped to login-card so
   signup Select2 styling is not affected.
*/

.login-card select.form-control {
    appearance: auto;

    cursor: pointer;

    background-image: none !important;
}


.login-card select.form-control:focus {
    box-shadow: none;

    background-color: transparent;
}


/* =========================================================
   SIGN UP SUPPORT
   ========================================================= */

.signup-card {
    width: 100%;
    max-width: 500px;
}


.signup-title {
    width: 100%;

    margin: 0 0 6px;

    font-size: 22px;
    font-weight: 600;
}


.signup-subtitle {
    width: 100%;

    margin: 0 0 25px;

    color: #6b7280;

    font-size: 13px;
}


.required-star {
    color: #dc3545;
}


.signup-footer {
    width: 100%;

    margin-top: 22px;

    text-align: center;

    color: #6b7280;

    font-size: 13px;
}


.signup-footer a {
    color: #00bbf0;

    text-decoration: none;

    font-weight: 600;
}


.signup-footer a:hover {
    text-decoration: underline;
}


.signup-submit {
    width: 100%;

    min-height: 45px;
}


/* =========================================================
   SIGN UP FORM LABELS
   ========================================================= */

.form-label {
    font-size: 13px;

    font-weight: 500;

    margin-bottom: 6px;
}


/*
   Scoped to signup card so Bootstrap/login inputs are
   not unexpectedly changed.
*/

.signup-card .form-control {
    min-height: 44px;
}


.signup-card .input-group .form-control {
    min-height: 44px;
}

/* =========================================================
   SIGN UP COMPANY SELECT2
   ========================================================= */

/* Main company field */
.login-card .company-select-group {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 44px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;

    background-color: #fbfbfb;

    border: 1px solid #e1e1e1;
    border-radius: 50px;

    overflow: visible;
}

/* Focus */
.login-card .company-select-group:focus-within {
    border-color: #27a5ee !important;

    box-shadow:
        0 0 0 2px rgba(17, 63, 103, 0.1);
}


/* =========================================================
   COMPANY ICON
   ========================================================= */

.login-card .company-select-icon {
    flex: 0 0 45px;

    width: 45px;
    min-width: 45px;
    max-width: 45px;

    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #a0a0a0;

    background: transparent;

    border: none;

    line-height: 1;
}

.login-card .company-select-icon i {
    display: block;

    width: 16px;
    height: 16px;

    font-size: 15px;
    line-height: 16px;

    text-align: center;
}


/* =========================================================
   SELECT2 WRAPPER
   ========================================================= */

.login-card .company-select-container {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    position: relative;
}


/* =========================================================
   HIDDEN ORIGINAL SELECT
   Do not let login.css alter Select2's hidden select
   ========================================================= */

.login-card .company-select-container select#company_id {
    width: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;
}


/* =========================================================
   SELECT2 CONTAINER
   ========================================================= */

.login-card .company-select-container .select2-container {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
}


/* =========================================================
   SELECT2 SELECTED FIELD
   ========================================================= */

.login-card .company-select-container .select2-container--default .select2-selection--single {
    position: relative;

    width: 100% !important;

    height: 42px !important;
    min-height: 42px !important;

    display: block;

    background: transparent !important;

    border: none !important;
    border-radius: 0 50px 50px 0 !important;

    outline: none !important;

    box-shadow: none !important;
}


/* =========================================================
   SELECTED COMPANY TEXT
   ========================================================= */

.login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 42px !important;

    margin: 0 !important;

    padding: 0 42px 0 12px !important;

    color: #333333 !important;

    background: transparent !important;

    font-size: 14px !important;
    font-weight: 400;

    line-height: 42px !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================================
   SELECT2 ARROW
   ========================================================= */

.login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;

    top: 0 !important;
    right: 8px !important;

    width: 30px !important;
    height: 42px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: static !important;

    margin: 0 !important;

    border-color:
        #777777 transparent transparent transparent;
}


/* =========================================================
   SELECT2 OPEN STATE
   ========================================================= */

.login-card .company-select-container .select2-container--default.select2-container--open .select2-selection--single {
    border: none !important;

    box-shadow: none !important;
}


/* =========================================================
   SELECT2 DROPDOWN
   ========================================================= */

.select2-container--open {
    z-index: 10000 !important;
}

.select2-dropdown {
    z-index: 10001 !important;

    border: 1px solid #e1e1e1 !important;

    border-radius: 10px !important;

    overflow: hidden;
}


/* =========================================================
   SEARCH
   ========================================================= */

.select2-search--dropdown {
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    width: 100% !important;

    min-height: 38px !important;

    padding: 6px 10px !important;

    border: 1px solid #dee2e6 !important;

    border-radius: 6px !important;

    outline: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #27a5ee !important;

    box-shadow:
        0 0 0 2px rgba(39, 165, 238, 0.1) !important;
}


/* =========================================================
   OPTIONS
   ========================================================= */

.select2-results__option {
    padding: 9px 12px;

    font-size: 14px;

    overflow-wrap: break-word;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00bbf0;

    color: #ffffff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f0f9fc;

    color: #333333;
}


/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"] .login-card .company-select-icon {
    order: 2;
}

html[dir="rtl"] .login-card .company-select-container {
    order: 1;
}

html[dir="rtl"] .login-card .company-select-container .select2-container--default .select2-selection--single {
    border-radius: 50px 0 0 50px !important;
}

html[dir="rtl"] .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 12px 0 42px !important;

    text-align: right;
}

html[dir="rtl"] .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto !important;
    left: 8px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .login-card .company-select-icon {
        flex: 0 0 40px;

        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }

    .login-card .company-select-container .select2-container--default .select2-selection--single {
        height: 42px !important;
        min-height: 42px !important;
    }

    .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        height: 42px !important;

        padding-left: 10px !important;
        padding-right: 38px !important;

        font-size: 14px !important;

        line-height: 42px !important;
    }

    .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 42px !important;
    }

    html[dir="rtl"] .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-left: 38px !important;
        padding-right: 10px !important;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 320px) {

    .login-card .company-select-icon {
        flex: 0 0 36px;

        width: 36px;
        min-width: 36px;
        max-width: 36px;
    }

    .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-left: 6px !important;
        padding-right: 32px !important;

        font-size: 12px !important;
    }

    html[dir="rtl"] .login-card .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-left: 32px !important;
        padding-right: 6px !important;
    }
}

/* =========================================================
   DECORATIVE CALCULATOR ICON
   ========================================================= */

.calculator-icon-bottom {
    position: absolute;

    right: 2rem;
    bottom: 2rem;

    font-size: 3rem;

    color: rgba(17, 63, 103, 0.2);

    pointer-events: none;
}


/* =========================================================
   LARGE DESKTOP
   1400px+
   ========================================================= */

@media (min-width: 1400px) {

    .master-wrapper {
        padding: 30px;
    }

    .split-login-container {
        width: min(100%, 1100px);

        min-height: 500px;
    }

    .left-panel,
    .right-panel {
        padding: 45px;
    }

    .login-card {
        max-width: 420px;
    }

    .signup-card {
        max-width: 500px;
    }

    .welcome-headline {
        font-size: 3.5rem;
    }
}


/* =========================================================
   DESKTOP / LAPTOP
   993px - 1399px
   ========================================================= */

@media (min-width: 993px) and (max-width: 1399px) {

    .split-login-container {
        width: min(100%, 950px);
    }

    .left-panel,
    .right-panel {
        padding: 35px;
    }

    .login-card {
        max-width: 400px;
    }

    .signup-card {
        max-width: 480px;
    }

    .welcome-headline {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }
}


/* =========================================================
   TABLET
   577px - 992px
   ========================================================= */

@media (max-width: 992px) {

    .master-wrapper {
        min-height: 100vh;
        min-height: 100dvh;

        padding: 20px;
    }

    .split-login-container {
        width: min(100%, 600px);
        max-width: 600px;

        flex-direction: column;

        min-height: auto;
        height: auto;

        border-radius: 15px;
    }

    /* LEFT */

    .left-panel {
        width: 100%;

        min-height: 200px;

        flex: none;

        padding: 30px 25px;

        text-align: center;
    }

    .content-wrapper {
        width: 100%;
        max-width: 500px;

        text-align: center;
    }

    .welcome-headline {
        width: 100%;

        margin-bottom: 15px;

        font-size: 2rem;

        line-height: 1.25;

        white-space: normal;
    }

    .welcome-text {
        width: 100%;
        max-width: 100%;

        font-size: 15px;
    }

    /* RIGHT */

    .right-panel {
        width: 100%;

        padding: 35px 30px;
    }

    .login-card {
        width: 100%;
        max-width: 450px;

        padding: 0;
    }

    .signup-card {
        max-width: 500px;
    }

    .sign-in-title {
        width: 100%;

        margin-bottom: 30px;

        text-align: center;
    }
}


/* =========================================================
   MOBILE
   576px AND BELOW
   ========================================================= */

@media (max-width: 576px) {

    .master-wrapper {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;

        padding: 15px;
    }

    .split-login-container {
        width: 100%;
        max-width: 100%;

        border-radius: 12px;
    }

    /* LEFT */

    .left-panel {
        width: 100%;

        min-height: 170px;

        padding: 25px 20px;
    }

    .content-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .welcome-headline {
        width: 100%;

        margin-bottom: 12px;

        font-size: 1.6rem;

        line-height: 1.25;

        white-space: normal;
    }

    .welcome-text {
        width: 100%;
        max-width: 100%;

        font-size: 14px;

        line-height: 1.5;
    }

    /* RIGHT */

    .right-panel {
        width: 100%;

        padding: 30px 18px;
    }

    .login-card {
        width: 100%;
        max-width: 100%;

        padding: 0;
    }

    .signup-card {
        max-width: 100%;
    }

    .sign-in-title {
        width: 100%;

        font-size: 1.8rem;

        margin-bottom: 25px;

        text-align: center;
    }

    /* LOGIN INPUT */

    .login-card .form-control {
        width: 100%;

        min-width: 0;

        padding: 0.75rem 0.8rem;

        font-size: 15px;
    }

    .login-card .input-group-text {
        padding-left: 1rem;
        padding-right: 0.75rem;
    }

    /* BUTTON */

    #loginButton,
    .signup-submit {
        width: 100%;

        min-height: 48px;

        font-size: 16px;
    }

    /* OPTIONS */

    .options-row {
        font-size: 0.85rem;
    }

    /* SIGNUP */

    .signup-title {
        font-size: 21px;
    }

    .signup-subtitle {
        margin-bottom: 20px;
    }

    .signup-footer {
        margin-top: 18px;
    }

    /* SELECT2 */

    .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 14px;

        padding-left: 10px !important;
        padding-right: 35px !important;
    }

    .company-select-icon {
        width: 42px;
        min-width: 42px;
    }

    /* CUSTOM DROPDOWN */

    .dropdown-menu-custom {
        max-width: 100%;

        max-height: 200px;
    }
}


/* =========================================================
   SMALL MOBILE
   376px - 425px
   ========================================================= */

@media (max-width: 425px) {

    .master-wrapper {
        padding: 10px;
    }

    .split-login-container {
        border-radius: 10px;
    }

    .left-panel {
        min-height: 160px;

        padding: 22px 15px;
    }

    .welcome-headline {
        font-size: 1.45rem;
    }

    .welcome-text {
        font-size: 13px;
    }

    .right-panel {
        padding: 25px 15px;
    }

    .sign-in-title {
        font-size: 1.6rem;
    }

    .login-card .form-control {
        font-size: 14px;
    }

    .login-card .input-group-text {
        padding-left: 0.8rem;
        padding-right: 0.6rem;
    }

    #loginButton,
    .signup-submit {
        font-size: 15px;
    }

    .signup-title {
        font-size: 20px;
    }

    .signup-subtitle {
        font-size: 12.5px;
    }

    .form-label {
        font-size: 12.5px;
    }

    .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 13px;

        padding-left: 8px !important;
        padding-right: 32px !important;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   320px AND BELOW
   ========================================================= */

@media (max-width: 320px) {

    .master-wrapper {
        padding: 8px;
    }

    .split-login-container {
        border-radius: 8px;
    }

    .left-panel {
        min-height: 150px;

        padding: 18px 12px;
    }

    .right-panel {
        padding: 22px 12px;
    }

    .welcome-headline {
        font-size: 1.3rem;

        line-height: 1.2;
    }

    .welcome-text {
        font-size: 12px;

        line-height: 1.45;
    }

    .sign-in-title {
        font-size: 1.45rem;
    }

    .login-card .form-control {
        font-size: 13px;

        padding: 0.7rem;
    }

    .login-card .input-group-text {
        padding-left: 0.65rem;
        padding-right: 0.5rem;
    }

    #loginButton,
    .signup-submit {
        font-size: 14px;
    }

    .signup-title {
        font-size: 19px;
    }

    .signup-subtitle {
        font-size: 12px;

        line-height: 1.5;
    }

    .company-select-icon {
        width: 38px;
        min-width: 38px;
    }

    .company-select-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 12px;

        padding-left: 6px !important;
        padding-right: 28px !important;
    }

    .dropdown-btn {
        padding-left: 5px;
        padding-right: 5px;
    }

    #selectedText,
    #selectedCompanyText,
    .user-name {
        font-size: 12px;
    }

    .user-item {
        padding: 9px 10px;

        gap: 8px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;

        font-size: 12px;
    }
}


/* =========================================================
   RTL SUPPORT
   ========================================================= */

html[dir="rtl"] .content-wrapper {
    text-align: right;
}

html[dir="rtl"] .selected-user {
    text-align: right;
}

html[dir="rtl"] .welcome-text {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .company-select-icon {
    border-radius: 0 50px 50px 0;
}

html[dir="rtl"] .company-select-container .select2-container--default .select2-selection--single {
    border-radius: 50px 0 0 50px !important;
}

html[dir="rtl"] .password-toggle {
    padding-right: 0.75rem;
    padding-left: 1.5rem;
}


/* =========================================================
   MOBILE RTL
   ========================================================= */

@media (max-width: 992px) {

    html[dir="rtl"] .content-wrapper {
        text-align: center;
    }

    html[dir="rtl"] .welcome-text {
        margin-left: auto;
        margin-right: auto;
    }
}


/* =========================================================
   INPUT + ICON ALIGNMENT FIX
   Keep every input group in one horizontal line
   ========================================================= */

.login-card .input-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;

    position: relative;

    overflow: hidden;
}


/* =========================================================
   LEFT ICON
   ========================================================= */

.login-card .input-group>.input-group-text:first-child {
    flex: 0 0 45px !important;

    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;

    height: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border: none !important;

    background: transparent !important;

    color: #a0a0a0;

    white-space: nowrap;

    line-height: 1;
}


/* =========================================================
   INPUT FIELD
   ========================================================= */

.login-card .input-group>.form-control {
    flex: 1 1 auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 44px !important;

    display: block !important;

    padding: 0.7rem 0.9rem !important;

    border: none !important;

    background: transparent !important;

    line-height: 1.5;

    box-shadow: none !important;
}


/* =========================================================
   RIGHT PASSWORD ICON
   ========================================================= */

.login-card .input-group>.password-toggle {
    flex: 0 0 45px !important;

    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;

    height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    border: none !important;

    background: transparent !important;

    color: #a0a0a0;

    cursor: pointer;

    white-space: nowrap;
}


/* =========================================================
   ICON SIZE / VERTICAL ALIGNMENT
   ========================================================= */

.login-card .input-group>.input-group-text i,
.login-card .input-group>.password-toggle i {
    display: block;

    width: 16px;
    height: 16px;

    font-size: 15px;

    line-height: 16px;

    text-align: center;
}


/* =========================================================
   FOCUS
   ========================================================= */

.login-card .input-group:focus-within {
    border-color: #27a5ee !important;

    box-shadow:
        0 0 0 2px rgba(17, 63, 103, 0.1) !important;
}

.login-card .input-group:focus-within .input-group-text {
    color: #1e293b;
}


/* =========================================================
   CUSTOM COMPANY / USER DROPDOWN
   Keep icon + dropdown on same line
   ========================================================= */

.login-card .custom-user-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.login-card .custom-user-group>.input-group-text {
    flex: 0 0 45px !important;

    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;

    height: 44px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
}


/* Dropdown takes remaining width */

.login-card .custom-user-group>.custom-dropdown {
    flex: 1 1 auto !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}


/* Dropdown button */

.login-card .custom-user-group .dropdown-btn {
    width: 100% !important;
    min-width: 0 !important;

    min-height: 44px !important;
    height: 44px !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 8px !important;
}


/* Selected text stays on one line */

.login-card .custom-user-group .selected-user {
    width: 100%;

    min-width: 0;

    display: flex;
    align-items: center;
}


.login-card .custom-user-group #selectedText,
.login-card .custom-user-group #selectedCompanyText {
    min-width: 0;

    flex: 1 1 auto;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.5;
}


/* =========================================================
   MOBILE ALIGNMENT
   ========================================================= */

@media (max-width: 576px) {

    .login-card .input-group>.input-group-text:first-child,
    .login-card .custom-user-group>.input-group-text {
        flex-basis: 40px !important;

        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }

    .login-card .input-group>.password-toggle {
        flex-basis: 40px !important;

        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }

    .login-card .input-group>.form-control {
        height: 44px !important;

        padding: 0.65rem 0.7rem !important;

        font-size: 15px;
    }

    .login-card .input-group>.input-group-text i,
    .login-card .input-group>.password-toggle i {
        font-size: 14px;

        line-height: 16px;
    }

    .login-card .custom-user-group .dropdown-btn {
        height: 44px !important;

        min-height: 44px !important;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 320px) {

    .login-card .input-group>.input-group-text:first-child,
    .login-card .custom-user-group>.input-group-text {
        flex-basis: 36px !important;

        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }

    .login-card .input-group>.password-toggle {
        flex-basis: 36px !important;

        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }

    .login-card .input-group>.form-control {
        font-size: 13px;

        padding: 0.6rem !important;
    }

    .login-card .input-group>.input-group-text i,
    .login-card .input-group>.password-toggle i {
        font-size: 13px;
    }
}


/* CSS for link */
.drivo-link {
    color: #00a6d6;
    text-decoration: none;
}

.drivo-link:hover {
    text-decoration: underline;
}