/* The classic WooCommerce login remains a separate flow; give it the same compact frame. */
html:has(> body.plus-auth-legacy),
body.plus-auth-legacy {
    box-sizing: border-box;
    width: 100%;
    height: 100dvh !important;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}
body.plus-auth-legacy,
body.plus-auth-legacy * { box-sizing: border-box; }
body.plus-auth-legacy {
    background: var(--pa-legacy-bg, color-mix(in srgb, var(--pa-c1) 3%, #f6f7f8)) !important;
    color: #203044;
}
body.plus-auth-legacy .all_center {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
}
body.plus-auth-legacy .login_container {
    display: block;
    width: min(100%, 470px);
    max-width: 470px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}
body.plus-auth-legacy .white_card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100dvh - 32px);
    padding: clamp(24px, 4vw, 38px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e1e6ec;
    border-top: 3px solid color-mix(in srgb, var(--pa-c2) 35%, #e1e6ec);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 42px -32px rgba(27, 43, 62, .42);
    scrollbar-width: thin;
}
body.plus-auth-legacy .white_card h2,
body.plus-auth-legacy .white_card h2.title_here {
    margin: 0 0 24px !important;
    padding: 0 !important;
    color: #17263a !important;
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
}
body.plus-auth-legacy .white_card h2.title_here > span { display: none; }
body.plus-auth-legacy .white_card :is(.aramis_login, .aramis_register_form) {
    display: flex;
    flex-direction: column;
    gap: 17px;
    min-width: 0;
}
body.plus-auth-legacy .solid_input { gap: 8px; min-width: 0; }
body.plus-auth-legacy .solid_input label {
    min-height: 20px;
    color: #405269;
    font-size: 13px;
    font-weight: 600;
}
body.plus-auth-legacy .solid_input label svg { width: 17px; height: 17px; }
body.plus-auth-legacy .solid_input .input_container { position: relative; width: 100%; }
body.plus-auth-legacy .solid_input input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    height: 53px;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid #d9e1e9;
    border-radius: 10px;
    outline: 0;
    background: #fbfcfd;
    box-shadow: none;
    color: #17263a;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
    transition: border-color .18s ease, background-color .18s ease;
}
body.plus-auth-legacy .solid_input input:not([type="checkbox"]):focus {
    border-color: var(--main-color, #ff4b00);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color, #ff4b00) 10%, transparent);
}
body.plus-auth-legacy .solid_input input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px #fbfcfd inset;
    -webkit-text-fill-color: #17263a;
}
body.plus-auth-legacy .solid_input .btn_clear {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #99a5b3;
    transform: translateY(-50%);
}
body.plus-auth-legacy .solid_input .btn_clear:is(:hover, :focus-visible) { color: var(--main-color, #ff4b00); }
body.plus-auth-legacy .space_between {
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #617287;
    font-size: 12px;
}
body.plus-auth-legacy .space_between input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--main-color, #ff4b00); }
body.plus-auth-legacy .white_card :is(.aramis_login, .aramis_register_form) .btn.solid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 2px 0 0;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--main-color, #ff4b00);
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .18s ease;
}
body.plus-auth-legacy .white_card :is(.aramis_login, .aramis_register_form) .btn.solid:hover {
    background: color-mix(in srgb, var(--main-color, #ff4b00) 88%, #111827);
    box-shadow: none;
    transform: none;
}
body.plus-auth-legacy .white_card :is(.text_blue, .link_primary) { color: var(--main-color, #ff4b00); }
body.plus-auth-legacy .white_card :is(.register_link, .text_darkgray, .login_condition) {
    margin: 15px 0 0;
    color: #68798b;
    font-size: 12px;
    line-height: 1.8;
}
body.plus-auth-legacy :is(a, button, input):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--main-color, #ff4b00) 50%, #fff);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    body.plus-auth-legacy .all_center { padding: 12px; }
    body.plus-auth-legacy .white_card { max-height: calc(100dvh - 24px); padding: 24px 20px; border-radius: 12px; }
}
