﻿input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.left,
.right {
    width: 50%;
}

.left {
    height: 100vh;
}

.left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-bg {
    background-image: url('/assets/images/login/Com7_Login_BG.jpg');
    background-repeat: no-repeat;
    background-size: 300%;
    background-position: 78% 82%;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-bg {
    height: 100%;
}

/* text overlay */
.carousel-caption-custom {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%); /* จัดกลางจริง */

    color: white;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
    text-align: center;
    font-weight: bold;
    line-height: 33px;
}

.carousel-caption-custom p {
    font-size: 24px;
}

.login-title {
    color: #313131;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
}

.main-title {
    color: #313131;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
}

.sub-title {
    color: #57534E;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

p {
    margin-top: 0;
    margin-bottom: 0rem;
}

.auth-btn {
    border-radius: 10000px;
    background-color: #5BB947;
    color: white;
    font-size: 16px;
    width: 42%;
}

.btn:hover {
    background-color: #5BB947;
    color: white;
}

.verification-box {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 16px;
    border-color: #81d36a;
}

.verification-box input {
    font-size: 24px !important;
    color: #81d36a;
    font-weight: 700;
    width: 64px;
    height: 64px;
}
    .verification-box input:focus {
        box-shadow: 0 0 0 2px #81d36a;
    }

    #key-icon {
        width: 50px;
        height: 50px;
    }

#back-icon {
    width: 15px;
    height: 15px;
}

#backBtn {
    position: absolute;
    top: 80px;
    left: 1035px;
    z-index: 10;
    font-size: 16px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 77%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

    .toggle-password:hover {
        color: #333;
    }

.icon-eye {
    width: 16px;
    height: 16px;
}

.all-title {
    line-height: 39px;
}

.carousel-indicators button {
    width: 78px !important;
    height: 9px !important;
    border-radius: 10000px !important;
    border-top: 0px !important;
    border-bottom: 0px !important;
}

.form-control {
    font-size: 14px !important;
}

.field-validation-error {
    font-size: 14px !important;
}

.swal2-popup.swal2-modal {
    width: 392px;
    padding: 24px !important;
    border-radius: 12px;
}

.swal2-html-container {
    padding: 0px !important;
}

.swal-body {
    gap: 24px;
}

.swal2-actions .swal2-cancel {
}

.swal2-actions .swal2-cancel {
}

.swal2-actions .swal2-confirm {
}

.swal2-popup.swal2-show .swal2-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-default);
    line-height: calc(var(--font-size-4xl) * var(--line-height-tight));
}

.swal2-popup.swal2-show .swal2-html-container {
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: var(--letter-spacing-default);
    line-height: calc(var(--font-size-lg) * var(--line-height-tight));
}

.bg-warning {
    background-color: var(--color-bg-warning);
}

.bg-success {
    background-color: var(--color-bg-success) !important;
}

@media (min-width: 768px) {
    .form-container {
        margin: auto;
        width: 600px;
    }
}

@media (max-width: 1024px) {
    .left {
        display: none;
    }

    .right {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .auth-btn {
        width: 100% !important;
    }

    .verification-box input {
        width: 57px !important;
        height: 57px !important;
    }

    #backBtn {
        left: 50px;
    }

    .row.custom {
        width: 100% !important;
    }

    .main-title {
        text-align: center;
    }

    .sub-title {
        text-align: center;
    }

    .text-lg-start {
        text-align: center !important;
    }
}

#backBtn:hover {
    background: white;
    color: black;
}

.form-control.is-invalid {
    border-color: red !important;
}

#error-text {
    margin-bottom: 0.25rem;
}