* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 'Source Sans 3', Arial, sans-serif; color: #111; }
button, input { font: inherit; }
a { color: #3e3d8b; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #f44336; outline-offset: 3px; }
.auth-scene { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; justify-content: flex-end; padding: 48px 5%; background: url('../img/basic_pages/register.svg') center / cover no-repeat; }
.auth-scene::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(62, 61, 139, 0) 36.74%, rgba(62, 61, 139, 0.3) 44.34%, rgba(57, 55, 130, 0.7) 53.16%, #3e3d8b 99.25%); }
.scene-link { position: absolute; top: 67%; right: 48%; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.auth-panel { width: 520px; max-width: 100%; padding: 26px 48px 30px; border-radius: 30px; background: #fff; }
h1 { text-align: center; margin: 0 0 20px; font-size: 36px; font-weight: 700; line-height: 1.2; }
.auth-field { margin-bottom: 14px; }
.auth-field label, .auth-profile legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
label > span, legend > span { color: #e23030; }
.auth-field input { display: block; width: 100%; height: 44px; border: 1px solid transparent; border-radius: 8px; background: #f4f4f4; padding: 10px 15px; font-size: 14px; }
.auth-field input::placeholder { color: #777; opacity: 1; }
.auth-field input[aria-invalid] { border-color: #b42318; }
.auth-profile { border: 0; padding: 0; margin: 24px 0 32px; }
.auth-profile label { display: inline-flex; align-items: center; gap: 7px; margin-right: 22px; margin-top: 5px; font-size: 14px; }
.auth-profile input, .auth-checkbox input { accent-color: #3e3d8b; width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: #3e3d8b; color: #fff; box-shadow: 0 3px 4px #0003; text-decoration: none; font-weight: 700; font-size: 16px; cursor: pointer; }
.auth-submit:hover { background: #302e70; }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-switch { margin: 20px 0 0; text-align: center; font-size: 14px; }
.auth-home { margin: 18px 0 0; text-align: center; font-size: 13px; }
.auth-home a { color: #666; }
.field-error { color: #b42318; font-size: 14px; margin: 5px 0 0; }
.field-hint { color: #666; font-size: 13px; margin: 5px 0 0; }
.auth-status { color: #17633a; border-left: 3px solid #24844f; padding: 10px 14px; margin: 0 0 18px; background: #eef8f2; font-size: 14px; }
.auth-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 20px; }
.auth-options { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; }
.account-email { margin: -4px 0 24px; text-align: center; color: #666; overflow-wrap: anywhere; }
.auth-account { margin: 0 0 24px; }
.auth-account > div { margin-bottom: 14px; }
.auth-account dt { color: #666; font-size: 13px; }
.auth-account dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.auth-signout { display: block; border: 0; background: transparent; color: #3e3d8b; text-decoration: underline; margin: 18px auto 0; font-size: 14px; cursor: pointer; }
@media (max-width: 1100px) {
    .auth-scene { padding-inline: 32px; }
    .auth-panel { width: 460px; padding-inline: 36px; }
    .scene-link { display: none; }
}
@media (max-width: 700px) {
    .auth-scene { padding: 40px 20px; justify-content: center; background-position: 38% center; }
    .auth-panel { padding: 28px; border-radius: 24px; }
    h1 { font-size: 30px; }
}
@media (max-width: 380px) {
    .auth-scene { padding: 24px 16px; }
    .auth-panel { padding: 24px 20px; }
    .auth-options { flex-wrap: wrap; margin-bottom: 20px; gap: 0 16px; }
    .auth-options .auth-checkbox { margin-bottom: 8px; }
}
