html:has(.jane-beauty-access-page),
body.jane-beauty-access-page { min-height: 100%; margin: 0; background: #f6f2ed; }

.jba-portal,
.jba-portal *,
.jba-portal *::before,
.jba-portal *::after { box-sizing: border-box; }

.jba-portal {
    display: grid;
    min-height: calc(100vh - 52px);
    grid-template-columns: minmax(0, 55fr) minmax(360px, 45fr);
    color: #1c3049;
    background: #fbfaf8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

.jba-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: clamp(52px, 8vw, 126px);
    color: #1c3049;
    background-image: linear-gradient(90deg, rgba(255, 248, 240, .23) 0%, rgba(255, 249, 242, .18) 55%, rgba(245, 226, 207, .16) 100%), url("../images/login-spa-visual.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.jba-hero::before {
    position: absolute;
    z-index: -1;
    width: 56%;
    height: 1px;
    right: 0;
    bottom: 17%;
    background: linear-gradient(90deg, rgba(187, 141, 106, 0), rgba(187, 141, 106, .62));
    content: "";
}

.jba-hero::after {
    position: absolute;
    z-index: -1;
    width: min(38vw, 520px);
    height: min(38vw, 520px);
    top: -24%;
    left: -19%;
    border: 1px solid rgba(193, 147, 115, .2);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(255, 251, 246, .26), 0 0 0 112px rgba(255, 251, 246, .17);
    content: "";
}

.jba-brand {
    display: grid;
    width: min-content;
    margin: 0;
    color: #173552;
    font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
    font-size: clamp(56px, 6.2vw, 94px);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: .82;
}

.jba-brand span + span { margin-left: .31em; }

.jba-eyebrow {
    margin: 30px 0 0;
    color: #27425d;
    font-size: clamp(17px, 1.6vw, 25px);
    letter-spacing: .12em;
    line-height: 1.4;
}

.jba-eyebrow::after {
    display: block;
    width: 62px;
    height: 3px;
    margin-top: 22px;
    background: #c69c7b;
    content: "";
}

.jba-description {
    max-width: 510px;
    margin: 30px 0 0;
    color: #324d64;
    font-size: clamp(16px, 1.35vw, 19px);
    letter-spacing: .035em;
    line-height: 1.9;
}

.jba-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    max-width: 540px;
    margin-top: 48px;
}

.jba-points span {
    min-height: 48px;
    padding: 13px 10px;
    color: #24425b;
    background: rgba(255, 253, 249, .74);
    border: 1px solid rgba(203, 176, 153, .42);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(98, 70, 47, .06);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.jba-access-card {
    align-self: center;
    width: min(calc(100% - 72px), 540px);
    margin: 36px auto;
    padding: clamp(38px, 5.2vw, 68px);
    background: rgba(255, 255, 255, .93);
    border: 1px solid #e8e1d9;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(39, 47, 53, .08);
}

.jba-kicker { margin: 0 0 11px; color: #8c765f; font-size: 13px; font-weight: 700; letter-spacing: .09em; }
.jba-access-card h2 { margin: 0 0 12px; color: #1c3049; font-size: clamp(28px, 2.3vw, 34px); letter-spacing: .015em; }
.jba-access-card > p { color: #6b7780; line-height: 1.7; }

.jba-login-form { display: grid; gap: 18px; margin-top: 32px; }
.jba-login-form label { display: grid; gap: 8px; color: #2e465b; font-size: 14px; font-weight: 700; }
.jba-login-form input[type="text"],
.jba-login-form input[type="password"] { width: 100%; min-height: 52px; padding: 12px 14px; color: #263238; background: #fff; border: 1px solid #d5dce0; border-radius: 10px; font: inherit; transition: border-color .16s ease, box-shadow .16s ease; }
.jba-login-form input:focus { border-color: #8fa2af; box-shadow: 0 0 0 3px rgba(143, 162, 175, .16); outline: none; }
.jba-login-form input::placeholder { color: #a2adb3; }
.jba-login-password-control { position: relative; display: block; width: 100%; }
.jba-login-password-control input { padding-right: 50px !important; }
.jba-login-password-toggle { position: absolute; top: 50%; right: 8px; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0; color: #61727d; background: transparent; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); }
.jba-login-password-toggle:hover, .jba-login-password-toggle:focus-visible { color: #1c3049; background: #f0f2f2; outline: none; }
.jba-login-password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.jba-login-password-toggle.is-visible::after { position: absolute; width: 23px; height: 1.5px; background: currentColor; content: ""; transform: rotate(-42deg); }
.jba-remember { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: #69777f !important; font-size: 14px !important; font-weight: 500 !important; }
.jba-primary { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 18px; color: #fff; background: #1c3049; border: 1px solid #1c3049; border-radius: 10px; box-shadow: 0 8px 18px rgba(28, 48, 73, .17); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.jba-primary:hover, .jba-primary:focus-visible { background: #294c69; outline: none; transform: translateY(-1px); }
.jba-logout, .jba-forgot-password { display: inline-block; margin-top: 19px; color: #687983; font-size: 14px; text-decoration: none; }
.jba-forgot-password { margin-top: 1px; }
.jba-forgot-password:hover, .jba-forgot-password:focus-visible, .jba-logout:hover, .jba-logout:focus-visible { color: #1c3049; text-decoration: underline; }
.jba-login-error, .jba-login-notice { margin: 20px 0 0 !important; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.jba-login-error { color: #84483f; background: #fbefed; border: 1px solid #edcfca; }
.jba-login-notice { color: #3f6a54; background: #eef7f0; border: 1px solid #cde4d2; }
.jba-footer { padding: 8px 30px 16px; color: #8b9093; background: #fbfaf8; font: 12px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif; text-align: right; }

@media (max-width: 900px) {
    .jba-portal { grid-template-columns: 1fr; }
    .jba-hero { min-height: auto; padding: 54px 38px 80px; background-size: cover; background-position: center; }
    .jba-access-card { width: min(calc(100% - 56px), 560px); margin: -30px auto 34px; }
    .jba-footer { padding: 0 24px 28px; text-align: center; }
}

@media (max-width: 480px) {
    .jba-portal { min-height: 100vh; }
    .jba-hero { padding: 44px 24px 70px; background-size: cover; background-position: 42% center; }
    .jba-brand { font-size: clamp(52px, 17vw, 68px); }
    .jba-eyebrow { margin-top: 25px; font-size: 18px; }
    .jba-description { margin-top: 24px; font-size: 15px; line-height: 1.8; }
    .jba-points { gap: 8px; margin-top: 32px; }
    .jba-points span { min-height: 45px; padding: 11px 5px; font-size: 12px; }
    .jba-access-card { width: calc(100% - 28px); margin-top: -25px; padding: 34px 24px; }
    .jba-primary { width: 100%; }
}
