#jalabc-login-page {
    min-height: 100vh;
    margin: 0;
    color: #111827;
    font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
    background: linear-gradient(150deg, #ffffff 0%, #f5f9ff 54%, #e8f2ff 100%);
}

#jalabc-login-page::before,
#jalabc-login-page::after {
    position: fixed;
    right: -12vw;
    bottom: -22vh;
    left: -12vw;
    height: 45vh;
    border-radius: 50% 50% 0 0 / 38% 38% 0 0;
    background: rgba(190, 218, 249, .35);
    content: "";
    transform: rotate(-7deg);
    z-index: 0;
}

#jalabc-login-page::after {
    bottom: -31vh;
    background: rgba(215, 233, 255, .65);
    transform: rotate(5deg);
}

.jalabc-page-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    padding: 24px 24px 40px;
}

.jalabc-brand-row {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

.brand-logo-jal {
    width: 270px;
    height: auto;
}

.brand-logo-glocalnet {
    width: 218px;
    height: auto;
}

.jalabc-brand-divider {
    width: 2px;
    height: 52px;
    background: #566273;
}

.jalabc-login-card {
    width: min(860px, 100%);
    box-sizing: border-box;
    margin-top: 24px;
    padding: 32px 60px 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(70, 117, 177, .16);
}

.jalabc-login-card h1 {
    margin: 0;
    color: #0e2b5c;
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
}

.jalabc-subtitle {
    margin: 10px 0 26px;
    color: #697386;
    font-size: 21px;
    text-align: center;
}

.jalabc-login-form {
    max-width: 620px;
    margin: 0 auto;
}

.jalabc-login-form > label:not(.jalabc-remember) {
    display: block;
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.jalabc-input-wrap {
    display: flex;
    min-height: 58px;
    box-sizing: border-box;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #fff;
}

.jalabc-input-wrap:focus-within {
    border-color: #075be3;
    box-shadow: 0 0 0 4px rgba(7, 91, 227, .12);
}

.jalabc-input-wrap > svg {
    width: 28px;
    height: 28px;
    margin: 0 22px 0 26px;
    fill: none;
    stroke: #26344d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.jalabc-input-wrap input {
    min-width: 0;
    flex: 1;
    height: 54px;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 16px;
}

.jalabc-input-wrap input::placeholder {
    color: #8993a4;
}

.jalabc-password-toggle {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.jalabc-password-toggle svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #26344d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.jalabc-remember {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 24px;
    font-size: 16px;
    cursor: pointer;
}

.jalabc-remember input {
    width: 22px;
    height: 22px;
    accent-color: #075be3;
}

.jalabc-submit {
    width: 100%;
    min-height: 62px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(105deg, #0846c8, #075be3);
    box-shadow: 0 6px 12px rgba(8, 70, 200, .18);
    font: inherit;
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
}

.jalabc-submit:hover { background: linear-gradient(105deg, #063cae, #064fc9); }
.jalabc-submit:active { transform: translateY(1px); }
.jalabc-submit:disabled { opacity: .65; cursor: not-allowed; }

.jalabc-reset-link {
    display: block;
    margin-top: 22px;
    color: #075be3;
    font-size: 17px;
    text-align: center;
    text-decoration: none;
}

.jalabc-reset-link:hover { text-decoration: underline; }
.jalabc-error { margin: -18px auto 27px; max-width: 700px; color: #b42318; font-weight: 700; text-align: center; }
.jalabc-welcome { margin: 35px 0; font-size: 20px; text-align: center; }
.jalabc-simple-page { justify-content: center; }
.jalabc-simple-page .jalabc-login-card { margin-top: 0; }

@media (min-width: 701px) and (max-height: 850px) {
    .jalabc-page-shell { padding: 14px 20px 24px; }
    .jalabc-brand-row { min-height: 56px; }
    .brand-logo-jal { width: 230px; }
    .brand-logo-glocalnet { width: 186px; }
    .jalabc-brand-divider { height: 44px; }
    .jalabc-login-card { margin-top: 14px; padding: 24px 50px 26px; }
    .jalabc-subtitle { margin-bottom: 18px; }
    .jalabc-input-wrap { min-height: 52px; margin-bottom: 14px; }
    .jalabc-input-wrap input { height: 48px; }
    .jalabc-remember { margin-bottom: 18px; }
    .jalabc-submit { min-height: 56px; }
    .jalabc-reset-link { margin-top: 16px; }
}

@media (max-width: 700px) {
    .jalabc-page-shell { padding: 24px 14px 60px; }
    .jalabc-brand-row { gap: 17px; }
    .brand-logo-jal { width: 47vw; }
    .brand-logo-glocalnet { width: 38vw; }
    .jalabc-brand-divider { height: 48px; }
    .jalabc-login-card { margin-top: 27px; padding: 32px 22px 38px; border-radius: 20px; }
    .jalabc-login-card h1 { font-size: 29px; }
    .jalabc-subtitle { margin: 12px 0 31px; font-size: 20px; }
    .jalabc-input-wrap { min-height: 62px; margin-bottom: 23px; }
    .jalabc-input-wrap > svg { width: 23px; height: 23px; margin: 0 14px 0 17px; }
    .jalabc-input-wrap input { height: 58px; font-size: 16px; }
    .jalabc-login-form > label:not(.jalabc-remember), .jalabc-remember { font-size: 17px; }
    .jalabc-remember { margin-bottom: 28px; }
    .jalabc-submit { min-height: 65px; font-size: 21px; }
    .jalabc-reset-link { margin-top: 28px; font-size: 17px; }
}

@media (max-width: 430px) {
    .jalabc-brand-row { flex-wrap: wrap; }
    .jalabc-brand-divider { display: none; }
    .brand-logo-jal, .brand-logo-glocalnet { width: min(310px, 82vw); }
}
