.register-page {
    --navy: #1e3649;
    --muted: #586b77;
    --line: #d5dddf;
    --gold: #c6ad7e;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--navy);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.register-page { background: #f4f5f3; }
.register-page *, .register-page *::before { box-sizing: inherit; }
.register-page :is(button, input) { font: inherit; }
.register-page button { cursor: pointer; }
.register-page a { color: #2a5672; text-underline-offset: 3px; }
.register-page :is(a, button, input[type="checkbox"]):focus-visible { outline: 2px solid #396c8e; outline-offset: 3px; }

.register-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding-inline: max(22px, calc((100% - 1100px) / 2));
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.register-page .register-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: .04em;
    text-decoration: none;
}
.register-brand::before { content: ""; width: 5px; height: 21px; border-left: 3px solid var(--gold); border-right: 1px solid var(--gold); }
.register-back { min-height: 44px; padding: 4px 0 4px 8px; border: 0; color: var(--muted); background: transparent; }
.register-back span { margin-right: 4px; }
.register-back:hover, .register-links a:hover { color: #153451; text-decoration: underline; }

.register-layout { width: min(520px, calc(100% - 32px)); margin: auto; padding-block: clamp(24px, 4vh, 52px); }
.register-panel { overflow: hidden; background: white; border: 1px solid #cfd7d9; border-radius: 16px; box-shadow: 0 12px 36px -20px #182b3a45; }
.register-heading, .register-content, .register-links { padding-inline: clamp(20px, 4vw, 40px); }
.register-heading { padding-block: 24px 22px; border-bottom: 2px solid var(--gold); background: var(--navy); }
.register-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 33px); line-height: 1.25; letter-spacing: .055em; color: #fff; }
.register-heading p { margin: 6px 0 0; color: #d5e0e4; font-size: 14px; }
.register-content { padding-block: 24px 18px; }
.register-field + .register-field { margin-top: 16px; }
.register-field label { display: block; font-weight: 600; }
.register-field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; }
.register-field-head span { color: var(--muted); font-size: 12px; }
.register-field input, .register-captcha {
    width: 100%;
    min-width: 0;
    height: 46px;
    margin-top: 6px;
    border: 1px solid #bfcbd0;
    border-radius: 8px;
    background: #fff;
}
.register-field input { padding: 0 13px; color: var(--navy); font-size: 16px; }
.register-field input::placeholder { color: #697780; font-size: 14px; }
.register-field input:focus { border-color: #416e85; outline: 2px solid #d3e1e7; outline-offset: 0; }
.register-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(108px, 33%); gap: 10px; }
.register-captcha { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 6px; color: #5e737e; }
.register-captcha:hover { border-color: #57798b; }
.register-captcha img { min-width: 0; max-width: calc(100% - 21px); max-height: 36px; object-fit: contain; }
.register-captcha svg { flex: 0 0 16px; height: 16px; }
.register-agreement { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 15px; font-size: 13px; }
.register-agreement input { flex: 0 0 17px; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--navy); }
.register-agreement label { cursor: pointer; }
.register-agreement a { font-weight: 600; text-decoration: none; }
.register-agreement a:hover { text-decoration: underline; }
.register-message { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #ac514a; color: #873b35; background: #fff4f2; font-size: 14px; }
.register-message:empty { display: none; }
.register-message.ok { color: #245d48; border-color: #59896c; background: #eff7f2; }
.register-page .register-submit { width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--navy); color: white; font-size: 16px; font-weight: 600; }
.register-submit:hover:not(:disabled) { background: #2b4d61; }
.register-submit:disabled { opacity: .6; cursor: wait; }
.register-details p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.register-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 52px; padding-block: 4px; border-top: 1px solid #e1e5e5; background: #f8faf9; color: var(--muted); font-size: 13px; }
.register-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.register-links span a { font-weight: 600; }
.register-page .account-icp-footer { padding: 10px 16px max(18px, env(safe-area-inset-bottom)); }
.register-page .account-icp-footer a { color: inherit; }
@media (max-width: 540px) {
    .register-topbar { min-height: 54px; padding-inline: 18px; }
    .register-layout { width: calc(100% - 24px); padding-block: 18px; }
    .register-panel { border-radius: 12px; }
    .register-heading { padding-block: 19px 17px; }
    .register-content { padding-block: 20px 16px; }
}
