/*********************************************/
/* css by by stlye LungYa hehe               */
/*********************************************/
body,
html {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    color: var(--bs-body-color);
    line-height: 22px;
    background-color: var(--bs-body-bg);
    overflow: hidden;
}

a {
    text-decoration: none;
}

img.logo {
    width: 40px;
    margin-left: 20px;
}

.login-form {
    width: 300px;
    font-size: 14px;
}

.login-step {
    min-height: 160px;
}

.selected-account {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    background: var(--bs-body-bg);
}

.btn-change-account {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-body-color);
    background: transparent;
}

.btn-change-account:hover {
    background: var(--bs-tertiary-bg);
}

.selected-account-body {
    min-width: 0;
}

.selected-account-label {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    line-height: 1.1;
}

.selected-account-username {
    color: var(--bs-body-color);
    font-size: 0.92rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 218px;
}

.selected-account-meta {
    color: var(--bs-secondary-color);
    font-size: 0.76rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 218px;
}

.forgot-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0 16px;
    background: var(--bs-body-bg);
}

.forgot-panel-title {
    color: var(--bs-body-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.forgot-panel-text {
    color: var(--bs-secondary-color);
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.forgot-channel-list {
    display: grid;
    gap: 8px;
}

.forgot-channel-btn {
    width: 100%;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-align: left;
}

.forgot-channel-btn:hover {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.forgot-channel-btn span,
.forgot-channel-btn small {
    display: block;
}

.forgot-channel-btn small {
    color: var(--bs-secondary-color);
    margin-top: 2px;
}

#togglePassword {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

input:focus,
button:focus {
    box-shadow: none !important;
}

.border-bottom-1 {
    border: 0 !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    border-radius: 0;
    padding-bottom: 0;
}
.border-bottom-1:focus {
    border: 0 !important;
    border-bottom: 1px solid var(--bs-primary-border-subtle) !important;
    border-radius: 0;
    padding-bottom: 0;
}

.logo-image img {
    width: 50px;
    position: absolute;
    top: 17px;
    left: 10px;
}

.login-area {
    width: 100%;
    min-height: 300px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mobile-area {
    width: 100%;
    height: 100vh;
}

.login-form .user-image {
    border: 4px solid #FFF;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    color: #fff;
    background-color: var(--bs-primary);
    margin: 0 auto;
    margin-top: -44px;
    box-shadow: 3px 3px 15px #ccc;
    margin-bottom: 10px;
    position: relative;
    z-index: 555;
}
.icon i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#btn_mobile_login i {
    font-size: 2.2rem;
}

.form-control-label {
    font-size: 0.8rem !important;
}

.username-is-mobile {
    font-size: 1.3rem;
}

.center-box {
    display: flex;
    justify-content: center; /* กึ่งกลางซ้าย-ขวา */
    align-items: center; /* กึ่งกลางบน-ล่าง */
    height: 100vh; /* เต็มหน้าจอ */
}
@media (max-width: 767.20px) {
    body,
    html {
        width: 100vw;
    }

    .container-canvas {
        overflow: initial;
    }
    .modal .modal-header .btn-close i.bi {
        margin-top: 6px;
    }
}
