﻿:root {
    --primary-dark: #2f2f78;
    --primary-light: #7a7cf0;
    --accent-green: #006b68;
    --accent-purple: #6557b8;
    --text-main: #273043;
    --text-muted: #8d92a6;
    --input-bg: #ffffff;
    --page-bg: #f3f3f5;
    --card-bg: #ffffff;
    --border-light: #ececf2;
    --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.08);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}


* {
    box-sizing: border-box;
}

.login-fogot-con {
    display: grid;
    justify-items: end;
    align-items: center;
    align-content: center;
    gap: 12px
}


/* Language dropdown */
.login-brand-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /*padding: 15px 50px;*/
    overflow: visible !important;
    z-index: 20;
}

.icon-lang-con {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
}

.brand-block {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ins-logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.language-dropdown {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1055;
    overflow: visible !important;
}

    .language-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        z-index: 9999 !important;
        min-width: 160px;
        margin-top: 8px;
        overflow: visible;
        border: none;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 8px;
        min-width: 160px;
    }

    .language-dropdown .dropdown-item {
        white-space: nowrap;
        padding: 10px 16px;
        border-radius: 8px;
        color: var(--insan-text);
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }

    .dropdown-item:hover {
        background-color: #f0f2f7;
        color: var(--insan-primary);
    }

    .dropdown-item.active {
        color: #ffffff;
        background: #005f5b85;
        font-weight: 500;
    }

.insan-btn-hdr-lang {
    border: none;
    background: unset;
    width: 44px;
    height: 44px;
    color: var(--insan-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

    .insan-btn-hdr-lang:hover {
        color: var(--insan-primary); /*
        border-color: var(--insan-primary);
        background-color: #f8f9ff;*/
    }

    .insan-btn-hdr-lang i {
        font-size: 1.4rem;
        color: #635ba8;
    }


body.login-body {
    margin: 0;
    /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
    background: #ffffff;
    /* color: var(--text-main);*/
}

.form-control, .form-select {
    border-radius: 15px !important;
}

.field-con {
    display: grid;
    gap: 25px;
}

.login-wrapper {
    max-width: 1600px;
    padding: 20px;
    border-radius: 20px;
    border: unset;
    background: #f0f0f0;
    background: linear-gradient(180deg, #FFFFFF -41.52%, #E5E5E5 114.73%);
}

.login-card {
    /*    background: var(--card-bg);
*/ /*border-radius: 22px;*/
    /* box-shadow: var(--shadow-soft);*/
    min-height: 92vh;
    /*border: 1px solid #e8e8ee;*/

    background: #f0f0f0;
    background: linear-gradient(180deg, #FFFFFF -41.52%, #E5E5E5 114.73%);
    padding:12px;
}

.login-subcon {
    height: 100%;
    display: grid;
    gap: 40px;
    padding: 15px 0 15px 0;
}
/* Left panel */
.login-left {
    display: grid;
    /*background: #f7f7f7;*/
    align-items: center;
    align-content: center;
    height: 100%;
    margin: 0 20px 0 0;
    background: #f0f0f0;
    background: linear-gradient(180deg, #FFFFFF -41.52%, #E5E5E5 114.73%);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
    box-shadow: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgb(140 140 140 / 84%);
}
/*
    .login-left:hover {
        background: rgb(243 243 243);
        box-shadow: 0 4px 12px rgb(140 140 140 / 84%);
        border-radius: 20px;
    }
*/
.brand-wrap {
    margin-left: 8px;
}

.brand-icon {
    gap: 4px;
    min-width: 62px;
    height: 62px;
}

    .brand-icon .shape {
        display: inline-block;
        background: var(--accent-purple);
        border-radius: 8px 8px 0 0;
    }

    .brand-icon .shape-1 {
        width: 18px;
        height: 42px;
        border-radius: 20px 20px 6px 6px;
    }

    .brand-icon .shape-2 {
        width: 22px;
        height: 28px;
        border-radius: 6px;
    }

    .brand-icon .shape-3 {
        width: 28px;
        height: 50px;
        background: var(--accent-green);
        border-radius: 0 30px 30px 0;
    }

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

    .brand-title span {
        color: var(--accent-green);
    }

    .brand-title small {
        font-size: 1rem;
        font-weight: 700;
        color: var(--accent-purple);
        margin-left: 6px;
    }

.login-form {
    width: 70%;
    margin-top: 10px;
    margin: 0 auto;
}

#togglePassword {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8d92a6;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.custom-control {
    height: 56px;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: var(--input-bg);
    box-shadow: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    padding-left: 16px;
    padding-right: 16px;
}

    .custom-control::placeholder {
        color: #8e91a2;
        font-weight: 500;
    }

    .custom-control:focus {
        border-color: #b7bcff;
        box-shadow: 0 0 0 0.2rem rgba(122, 124, 240, 0.15);
        background-color: #fff;
    }

.form-select.custom-control {
    color: #72778a;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8d92a6;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

    .password-toggle-btn:focus {
        outline: none;
    }

.forgot-link {
    color: #8d92a6;
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 600;
}

    .forgot-link:hover {
        color: var(--primary-dark);
    }

.login-btn {
    height: 56px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    transition: 0.3s ease;
    width: 100%;
}

    .login-btn:hover {
        color: #fff;
        opacity: 0.95;
        transform: translateY(-1px);
    }
/* Right panel */
.login-right {
    position: relative;
    min-height: 320px;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgb(140 140 140 / 84%);
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: center;
    /*    -webkit-backdrop-filter: inherit;
    backdrop-filter: inherit;*/
    background-size: cover;
    display: block;
    border-radius: 20px;
}
/* Tablet */
@media (max-width: 991.98px) {
    .login-card {
        min-height: auto;
    }

    .login-left {
        margin: 0;
    }

    .login-right {
        min-height: 420px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .login-form {
        max-width: 100%;
    }

    .left-con {
        background: #f0f0f0;
        background: linear-gradient(180deg, #FFFFFF -41.52%, #E5E5E5 114.73%);
        margin-bottom: 30px;
        height: 650px !important;
        border-radius: 20px;
    }

    .language-dropdown {
        right: 18px;
        top: -13%;
    }
}
/* Mobile */
@media (max-width: 575.98px) {
    .container-fluid {
        padding: 12px;
    }

    .login-card {
        border-radius: 18px;
    }

    .login-left {
        margin: 0;
    }

    .brand-wrap {
        margin-left: 0;
        margin-bottom: 28px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

        .brand-title small {
            font-size: 0.85rem;
        }

    .custom-control,
    .login-btn {
        height: 52px;
        font-size: 0.98rem;
    }

    .login-right {
        min-height: 250px;
    }
}
/* Mobile */
@media (max-width: 1320px) {
    .language-dropdown {
        right: 18px;
        top: 50%;
    }
}