/* 背景色 */
body.login-page {
    background-color: #ffffff;
}

/* 背景画像 */
body.login-page::before,
body.login-page::after {
    content: "";
    position: fixed;
    top: 0;
    height: 100vh;
    width: min(calc(100vh * 1376 / 2064), 50vw);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: var(--z-local-behind);
}

body.login-page::before {
    left: 0;
    background-image:
        url("/images/Huvital_login_left_top.png"),
        url("/images/Huvital_login_left_bottom.png");
    background-position:
        left top 0,
        left bottom 0;
    background-size:
        auto 40%,
        auto 45%;
}

body.login-page::after {
    right: 0;
    background-image:
        url("/images/Huvital_login_right_top.png"),
        url("/images/Huvital_login_right_bottom.png");
    background-position:
        right top 100px,
        right bottom 0;
    background-size:
        auto 40%,
        auto 30%;
}

@media (max-width: 991.98px) {
    body.login-page::before {
        background-position:
            left top 0,
            left bottom 200px;
        background-size:
            auto 30%,
            auto 25%;
    }
    
    body.login-page::after {
        background-position:
            right top 300px,
            right bottom 0;
        background-size:
            auto 30%,
            auto 22%;
    }
}

/* 装飾画像の上にコンテンツを表示 */
body.login-page #app-layout {
    position: relative;
    z-index: var(--z-local-base);
}

/* ログイン画面ではヘッダーを非表示にする */
body.login-page .fixed-header {
    display: none;
}

/* ロゴ画像 */
.loginLogo {
    max-width: 400px !important;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-5px);
}

/* エラーアラート表示位置調整 */
.loginErrorAlert {
    max-width: 484px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ログイン画面入力エリア */
.loginContainer {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 50px 50px;
    margin-top: 20px !important;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* ログイン画面入力エリア ラベル*/
.loginContainer .form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* ログイン画面入力エリア テキストボックス*/
.loginContainer .form-control {
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 4px;
}

/* テキストボックス内のボタン表示制御 */
.facilityInputWrapper {
    position: relative;
}

/* テキストボックス内のボタンレイアウト*/
.loginContainer .facilityClearBtn {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

/* bi-x の字形余白による上寄りを補正 */
.loginContainer .facilityClearBtn i {
    transform: translateY(1px);
}

/* 施設検索ドロップダウン */
.loginContainer .facilityCombobox {
    position: relative;
}

.loginContainer .facilityResultDropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--z-dropdown);
    max-height: 12rem;
    overflow-y: auto;
    margin-top: 0.25rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loginContainer .facilityResultItem {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.95rem;
    text-align: left;
}

.loginContainer .facilityResultItem:hover,
.loginContainer .facilityResultItem:focus {
    background-color: #f8f9fa;
}

/* ログインボタン */
.btnLogin {
    max-width: 300px !important;
    min-height: 40px !important;
    margin-left: 20px;
    margin-right: 10px;
}
