/* Shared authentication foundation from the registration reference. */
#auth-screen .auth-register-art,
#auth-screen .auth-input-icon,
#auth-screen .account-type-info,
#auth-screen .account-type-help { display: none; }
#auth-screen .auth-text-field { margin-bottom: 16px; }
#auth-screen .auth-text-field > label { margin-bottom: 7px; }
#auth-screen .auth-text-field input { margin-top: 0; }
#auth-screen .account-card-check svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.5; }
#auth-screen .auth-portfolio-illustration { stroke: none; }
#auth-screen .auth-sandbox-icon svg { width: 25px; height: 25px; }

#auth-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #e6efff; align-items: stretch; }
#auth-screen .auth-signin-art { display: none; }
#auth-screen .auth-register-art { display: flex; }
#auth-screen .auth-panel {
    position: relative; isolation: isolate; padding: 35px clamp(24px, 5vw, 84px) 29px;
    background: radial-gradient(ellipse at 70% 32%, #f5f8ff 0%, #e5eeff 49%, #d7e8ff 100%);
}
#auth-screen .auth-panel::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(139deg, transparent 43%, #ffffff38 43%, #ffffff38 56%, transparent 56%), linear-gradient(131deg, transparent 84%, #ffffff42 84%);
}
#auth-screen #auth-form {
    width: 100%; max-width: 670px; padding: 20px clamp(24px, 3.45vw, 58px) 24px;
    border: 1px solid #ffffffb3; border-radius: 27px; background: #ffffffd9;
    box-shadow: 0 14px 40px #254b9c16; text-align: left;
}
#auth-screen #auth-form > .eyebrow { color: #004cff; font-size: 11px; line-height: 16px; letter-spacing: 1.8px; font-weight: 750; }
#auth-screen #auth-title { margin: 5px 0 5px; font-size: clamp(25px, 1.95vw, 34px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 750; color: #060e30; }
#auth-screen #auth-subtitle { margin: 0 0 16px; color: #465783; font-size: 14px; line-height: 20px; }
#auth-screen #auth-form label,
#auth-screen #auth-form legend { color: #0b1535; font-size: 13px; line-height: 18px; font-weight: 650; }
#auth-screen .auth-text-field { margin-bottom: 14px; }
#auth-screen .auth-text-field > label,
#auth-screen .auth-password-field > label { margin-bottom: 4px; }
#auth-screen .auth-input-control { position: relative; }
#auth-screen .auth-input-icon { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); display: flex; color: #566b97; pointer-events: none; }
#auth-screen .auth-input-icon svg { width: 20px; height: 20px; }
#auth-screen #auth-form .auth-input-control input {
    height: 40px; margin-top: 0; border: 1px solid #c9d7f3; border-radius: 10px; background: #ffffff26;
    padding: 9px 14px 9px 52px; color: #0b1431; font-size: 13px; line-height: 20px;
}
#auth-screen #auth-form .auth-input-control input::placeholder { color: #7b8caf; opacity: 1; }
#auth-screen #auth-form .auth-input-control input:focus { border-color: #0b5fff; box-shadow: 0 0 0 3px #0b5fff10; }
#auth-screen #auth-form .auth-password-control input { padding-right: 46px; }
#auth-screen #auth-form .auth-password-toggle { right: 5px; width: 36px; height: 36px; padding: 9px; }
#auth-screen #auth-form .auth-password-toggle svg { width: 19px; height: 19px; }
#auth-screen #auth-form .account-types { margin: 0 0 14px; }
#auth-screen #auth-form .account-types legend { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; padding: 0; }
#auth-screen .account-type-info { display: inline-flex; color: #64799e; }
#auth-screen .account-type-info svg { width: 15px; height: 15px; }
#auth-screen .account-type-help { display: block; margin: 0 0 10px; font-size: 11.5px; line-height: 16px; color: #465783; }
#auth-screen #auth-form .account-type-grid { gap: 12px; }
#auth-screen #auth-form .account-choice { margin: 0; }
#auth-screen #auth-form .account-card { min-height: 121px; padding: 11px 16px 12px; border-color: #cbd8f4; border-radius: 11px; background: #ffffff30; }
#auth-screen #auth-form .account-card-icon { width: 38px; height: 37px; margin-bottom: 7px; background: #edf2ff; color: #455b86; border-radius: 9px; }
#auth-screen #auth-form .account-card-icon svg { width: 25px; height: 25px; stroke-width: 1.8; }
#auth-screen #auth-form .account-card strong { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: -.35px; color: #0b1431; }
#auth-screen #auth-form .account-card small { display: block; margin-top: 4px; font-size: 10px; line-height: 14px; font-weight: 400; color: #435983; }
#auth-screen #auth-form .account-card-check { top: 9px; right: 10px; width: 19px; height: 19px; border-color: #b9cbef; }
#auth-screen #auth-form .account-choice:hover .account-card { border-color: #759dff; }
#auth-screen #auth-form .account-choice input:checked + .account-card { background: linear-gradient(130deg, #e5efff, #eef4ff); border-color: #0755ff; box-shadow: 0 0 0 1px #0755ff, 0 5px 12px #0b5fff0d; }
#auth-screen #auth-form .account-choice input:checked + .account-card .account-card-icon { color: #0755ff; background: #cfe0ff; }
#auth-screen #auth-form .account-choice input:checked + .account-card .account-card-check { background: #0755ff; border-color: #0755ff; color: #fff; }
#auth-screen #auth-form .auth-password-field { margin-bottom: 14px; }
#auth-screen .auth-strength { margin-top: 7px; }
#auth-screen .auth-strength-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
#auth-screen .auth-strength-meter { display: flex; flex: 1; gap: 2px; height: 5px; }
#auth-screen .auth-strength-meter span { flex: 1; border-radius: 3px; background: #e4ebf8; }
#auth-screen .auth-strength-meter span.is-filled { background: var(--strength-color, #96a9c9); }
#auth-screen #auth-strength-label { min-width: 68px; padding: 2px 8px; border-radius: 20px; background: #edf2fa; color: #627393; font-size: 10px; line-height: 15px; font-weight: 650; text-align: center; }
#auth-screen .auth-strength[data-strength="4"] #auth-strength-label { background: #def8ee; color: #00754e; }
#auth-screen .auth-password-tips { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; padding: 0; margin: 0; list-style: none; }
#auth-screen .auth-password-tips li { display: flex; align-items: flex-start; gap: 5px; color: #5c6e91; font-size: 9px; line-height: 13px; }
#auth-screen .auth-password-tips svg { width: 13px; height: 13px; flex-shrink: 0; color: #a6b6d1; }
#auth-screen .auth-password-tips li.is-met svg { color: #00a574; }
#auth-screen .auth-password-tips small { font-size: 8px; }
#auth-screen #auth-error:empty { display: none; }
#auth-screen #auth-error { font-size: 12px; margin-bottom: 12px; }
#auth-screen #auth-form .auth-submit { height: 47px; min-height: 47px; position: relative; justify-content: center; padding: 10px 40px; margin-top: 6px; border-radius: 11px; background: linear-gradient(110deg, #075fff, #0042f5); color: white; font-size: 15px; font-weight: 700; box-shadow: 0 8px 15px #0b5fff18; }
#auth-screen .auth-submit > span { position: absolute; right: 20px; font-size: 27px; line-height: 1; font-weight: 400; }
#auth-screen .auth-switch { margin-top: 17px; color: #465b86; font-size: 13px; line-height: 20px; }
#auth-screen #auth-toggle { margin-left: 5px; color: #0048ed; font-size: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#auth-screen .sandbox-note { align-items: flex-start; gap: 13px; padding: 13px 20px; margin-top: 22px; border: 0; border-radius: 12px; background: #e7f0ff; color: #435982; font-size: 10.5px; line-height: 17px; }
#auth-screen .sandbox-note b { color: #0a1945; font-size: 13px; font-weight: 700; }
#auth-screen .auth-sandbox-icon { display: flex; margin-top: 2px; color: #0755ff; }
#auth-screen .auth-sandbox-icon svg { width: 27px; height: 27px; }

@media (min-width: 1500px) {
    #auth-screen .auth-panel { align-items: center; }
    #auth-screen #auth-form { padding-top: 20px; padding-bottom: 24px; }
    #auth-screen #auth-subtitle { margin-bottom: 16px; }
    #auth-screen .auth-text-field,
    #auth-screen #auth-form .auth-password-field,
    #auth-screen #auth-form .account-types { margin-bottom: 14px; }
}
@media (min-width: 1400px) {
    #auth-screen #auth-form .account-card small { white-space: nowrap; letter-spacing: -.1px; }
}
@media (min-width: 1025px) and (max-width: 1399px) {
    #auth-screen .auth-panel { padding: 28px; }
    #auth-screen #auth-form { padding: 27px; }
    #auth-screen #auth-form .account-card { padding: 11px 10px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    #auth-screen { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
    #auth-screen .auth-panel { padding: 24px 18px; }
    #auth-screen #auth-form { padding: 24px; border-radius: 22px; }
    #auth-screen #auth-form .account-type-grid { gap: 8px; }
    #auth-screen #auth-form .account-card { padding: 10px 8px; }
    #auth-screen #auth-form .account-card strong { font-size: 11.5px; }
    #auth-screen #auth-form .account-card small { font-size: 9.5px; }
}
@media (max-width: 768px) {
    #auth-screen { grid-template-columns: minmax(0, 1fr); }
    #auth-screen .auth-panel { padding: 24px; }
    #auth-screen #auth-form { max-width: 620px; padding: 30px; border-radius: 24px; }
    #auth-screen #auth-title { font-size: 29px; }
    #auth-screen #auth-form .auth-input-control input { height: 44px; }
    #auth-screen #auth-form .auth-password-toggle { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    #auth-screen .auth-panel { padding: 17px 12px 24px; }
    #auth-screen #auth-form { padding: 25px 20px; border-radius: 20px; }
    #auth-screen #auth-subtitle { font-size: 13px; line-height: 20px; }
    #auth-screen #auth-form > .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
    #auth-screen #auth-title { font-size: 27px; }
    #auth-screen #auth-form .account-type-grid { gap: 8px; }
    #auth-screen #auth-form .account-card { min-height: 122px; padding: 10px 8px; }
    #auth-screen #auth-form .account-card-icon { width: 30px; height: 30px; }
    #auth-screen #auth-form .account-card-icon svg { width: 21px; height: 21px; }
    #auth-screen #auth-form .account-card strong { font-size: 11px; letter-spacing: -.3px; }
    #auth-screen #auth-form .account-card small { font-size: 9px; line-height: 13px; }
    #auth-screen #auth-form .account-card-check { right: 6px; top: 7px; width: 16px; height: 16px; }
    #auth-screen .auth-password-tips { grid-template-columns: 1fr; gap: 3px; }
    #auth-screen .auth-password-tips li { font-size: 10px; }
    #auth-screen .auth-password-tips small { font-size: 9px; }
    #auth-screen .sandbox-note { padding: 13px; font-size: 10px; }
    #auth-screen .sandbox-note b { font-size: 12px; }
}
@media (max-width: 350px) {
    #auth-screen #auth-form { padding: 23px 15px; }
    #auth-screen #auth-title { font-size: 24px; }
    #auth-screen #auth-form .account-type-grid { grid-template-columns: 1fr; }
    #auth-screen #auth-form .account-card { min-height: 83px; padding: 12px 30px 12px 54px; justify-content: center; }
    #auth-screen #auth-form .account-card-icon { position: absolute; left: 12px; top: 25px; }
    #auth-screen #auth-form .account-card strong { font-size: 13px; }
    #auth-screen #auth-form .account-card small { font-size: 10px; }
    #auth-screen #auth-form .account-card small br { display: none; }
}
