/* .custom-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 100%;
    min-height: 100vh;
    background: var(--bs-white);
} */

/* .custom-login .custom-login-inner {
    width: 100%;
    max-width: 1300px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 15px;
} */

.custom-login .dash-header {
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    box-shadow: none;
    min-height: auto;
}

.custom-login .dash-header .dash-h-item {
    min-height: auto;
}

.custom-login .dash-header .navbar-brand {
    padding: 0;
}

.custom-login .dash-header .navbar-brand a {
    display: block;
    line-height: 1;
}

.custom-login .dash-header .navbar-brand a .logo {
    width: 160px;
    height: 60px;
}

.custom-login .bg-login {
    content: "";
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    border-radius: 0px;
    position: absolute;
    transform-origin: bottom;
    background: var(--bs-green);
}

.custom-login .navbar {
    background: var(--bs-white);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 6px 30px rgba(182, 186, 203, 0.3);
    padding: 10px 0;
}

.custom-login .navbar .navbar-collapse {
    justify-content: flex-end;
}

.custom-login .navbar .nav-link {
    padding: 1px 20px;
    position: relative;
    font-weight: 500;
    color: var(--bs-dark);
}

.custom-login .navbar .nav-item .nav-link::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 2px;
    background: #000000;
    top: 0;
    right: 0;
}

.custom-login .navbar .nav-item:last-of-type .nav-link::after {
    display: none;
}

/* .custom-login .card {
    box-shadow: none;
}

.custom-login .custom-wrapper {
    padding: 40px 0;
    max-width: 1170px;
    width: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.custom-login .custom-wrapper .custom-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    z-index: 9;
} */


.custom-login .custom-wrapper .card .card-body {
    background-color: var(--bs-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    box-shadow: 0px 0px 25px 0px #0000000d;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.custom-login .custom-login-form .for-pwd {
    font-size: 13px;
    line-height: 1;
}

.custom-login .custom-login-form .login-btn {
    margin-bottom: 20px;
}

.custom-login .custom-login-form .remember-check {
    font-size: 13px;
}

.custom-login .custom-login-form .field-icon {
    position: absolute;
    top: 58%;
    right: 10px;
    line-height: 1;
}

.custom-login .custom-login-form .pss-field {
    position: relative;
}

.custom-login a {
    color: var(--bs-green);
}

.custom-login .custom-wrapper .card .card-body h2 span {
    color: var(--bs-green);
    font-weight: 400;
}

.custom-login .form-control:focus {
    border-color: var(--bs-green);
    box-shadow: 0 0 0 0.2rem rgba(12, 175, 96, 0.25);
}

.custom-login .form-check-input:checked {
    background-color: var(--bs-green);
    border-color: var(--bs-green);
}

.custom-login .autorized-btn {
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.custom-login .autorized-btn .btn {
    max-width: 47%;
    width: 100%;
}

.custom-login .drp-language .drp-text {
    margin-right: 5px;
}

.custom-login .drp-language a span {
    color: #000000 !important;
}

.custom-login .dropdown-toggle::after {
    content: "";
    position: absolute;
    height: 6px;
    width: 9px;
    right: 10px;
    top: 18px;
    background: url(../images/down-arrow.svg);
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: all ease-in-out .5s;
    -moz-transition: all ease-in-out .5s;
    -ms-transition: all ease-in-out .5s;
    -o-transition: all ease-in-out .5s;
    transition: all ease-in-out .5s;
    border: 0;
}

.custom-login .drp-language .btn {
    background: #F5F5F5;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    margin: 0;
    padding: 10px 25px 10px 10px;
}

.custom-login .drp-language .btn.show {
    border-color: #F5F5F5;
}

.custom-login .custom-img img {
    max-width: 540px;
    width: 100%;
    margin: auto;
    display: block;
}

.custom-login .card {
    margin-bottom: 0;
    background-color: transparent;
    width: 440px;
}

.custom-login .custom-wrapper .card .card-body {
    box-shadow: 0px 0px 25px 0px rgb(0 0 0 / 10%);
    border-radius: 20px !important;
    padding: 20px;
}

.login-bg-1 {
    position: absolute;
    bottom: 0;
    left: 10%;
    z-index: 1;
}

.login-bg-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* .auth-footer {
    position: relative;
    z-index: 1;
    text-align: center;
} */

.auth-footer {
    background: transparent;
    padding: 0;
    color: inherit;
    width: 100%;
    position: relative;
    z-index: 100;
}

@media only screen and (max-width: 1439px) {
    .login-bg-1 {
        position: absolute;
        bottom: 0;
        left: 0%;
        z-index: 1;
        max-height: 500px;
    }
}


@media only screen and (max-width: 1300px) {
    .custom-login .card .custom-img img {
        max-width: 100%;
    }

    .login-bg-1 {
        position: absolute;
        bottom: 0;
        left: 0%;
        z-index: 1;
        max-height: 500px;
    }
}

@media only screen and (max-width: 1199px) {
    .custom-login .custom-wrapper .card .card-body {
        margin: auto;
    }
}

@media only screen and (max-width: 991px) {
    .custom-login .custom-wrapper {
        padding: 20px 0;
    }

    .custom-login .navbar .nav-link {
        padding: 0px 15px;
    }

    .auth-footer {
        text-align: center;
    }

    .login-bg-1,
    .login-bg-2 {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .custom-login .dash-header .navbar-brand {
        max-width: 120px;
    }

    .custom-login .navbar .nav-item .nav-link::after {
        display: none;
    }

    .custom-login .navbar .nav-link {
        padding: 10px 20px;
    }

    .custom-login .custom-wrapper .card .card-body {
        padding: 20px 15px;
    }

    .custom-login .navbar .navbar-collapse {
        text-align: center;
        margin-top: 20px;
    }

    .custom-login .dash-header .dash-h-item {
        display: block;
    }

    .custom-login .drp-language a {
        text-align: center;
    }
}

@media only screen and (max-width: 575px) {
    .custom-login .autorized-btn .btn {
        max-width: 100%;
    }
}



/* login page css (12-11-2024) */
.custom-login .custom-wrapper .custom-row {
    z-index: unset;
}


/* ==================== แก้ไขหน้า LOGIN gotbalance ====================*/
.custom-login {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f5f5;
}

.custom-login .custom-login-inner {
    flex: 1;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    background-color: #fff;
}

.custom-login .login-bg-img,
.custom-login .bg-login {
    display: none !important;
}

.custom-login .card {
    margin-bottom: 0;
    background-color: transparent;
    width: 440px;
    box-shadow: none;
}

.custom-login .custom-wrapper {
    padding: 40px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.custom-login .custom-wrapper .custom-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ===== HEADER STYLES ===== */
.auth-header {
    background-color: #273171;
    padding: 15px 0;
    width: 100%;
    position: relative;
    z-index: 100;
}

.header-container {
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    display: inline-block;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* Language dropdown in header */
.header-nav .drp-language .btn {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: none !important;
    padding: 8px 35px 8px 15px !important;
    border-radius: 5px !important;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.header-nav .drp-language .btn:hover {
    background-color: #f0f0f0 !important;
}

/* ===== CONTENT AREA ===== */
.custom-login .custom-wrapper {
    padding: 40px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.custom-login .custom-wrapper .card .card-body {
    background-color: #ffffff;
    box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.1);
    border-radius: 20px !important;
    padding: 30px;
}

/* ===== FOOTER STYLES ===== */
.footer-top {
    position: relative;
    background-color: #ffffff;
    padding: 18px 200px 16px;
}

/* สร้างเส้นขีดด้านบนด้วย before */
.footer-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 8px;
    background-color: #273171;
}

.footer-top .footer-container {
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    flex-shrink: 0;
}

.footer-text {
    flex: 1;
}

.footer-text-thai {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.footer-text-eng {
    margin: 0;
    font-size: 14px;
    color: #333333;
}

.footer-bottom {
    background-color: #273171;
    padding: 30px 200px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-copyright {
    margin: 0;
    font-size: 15px;
    color: #ffffff;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.85;
}

.footer-links .dot {
    color: #ffffff;
}

/* ===== FLOATING LINE BUTTON ===== */
.line-floating-btn {
    position: fixed;
    bottom: 10px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #00B900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.line-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.line-floating-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .line-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .line-floating-btn svg {
        width: 28px;
        height: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 10px;
    }

    .footer-links {
        margin-top: 4px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-btn {
        font-size: 14px;
        padding: 6px 15px;
    }

    .footer-top .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        max-height: 50px;
    }
}

@media (max-width: 575px) {
    .custom-login .card {
        width: 100%;
    }

    .header-logo img {
        max-height: 50px;
    }

    .line-floating-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .line-floating-btn svg {
        width: 25px;
        height: 25px;
    }
}