.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.register-back {
    position: absolute;
    top: 22px;
    left: 24px;
    color: #788491;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.16s ease;
}

.register-back:hover {
    color: #b3beca;
}

.register-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: #0c1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.register-title {
    margin: 0;
    color: #f4f7fb;
    font-size: 25px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.register-subtitle {
    margin: 7px 0 22px;
    color: #7f8b98;
    font-size: 13px;
    line-height: 1.5;
}

.register-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid transparent;
    border-radius: 10px;
}

.register-alert--error {
    color: #ff7b82;
    background: rgba(255, 82, 91, 0.09);
    border-color: rgba(255, 82, 91, 0.13);
}

.register-alert--success {
    color: #8fbeff;
    background: rgba(47, 140, 255, 0.1);
    border-color: rgba(47, 140, 255, 0.14);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.register-field--group-start {
    margin-top: 4px;
}

.register-field .login-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    color: #eef3f8;
    font-size: 14px;
    background: #0a0f14;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.register-field .login-input::placeholder {
    color: #68737f;
}

.register-field .login-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.register-field .login-input:focus {
    background: #0b1118;
    border-color: rgba(47, 140, 255, 0.85);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.1);
}

.register-field-error {
    padding-left: 2px;
    color: #ff747c;
    font-size: 11px;
    line-height: 1.4;
}

.register-password-field {
    position: relative;
}

.register-password-field .login-input {
    padding-right: 48px;
}

.register-password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #7e8996;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.16s ease, background 0.16s ease;
}

.register-password-toggle:hover {
    color: #72adf7;
    background: rgba(47, 140, 255, 0.1);
}

.register-password-toggle:focus-visible {
    outline: 2px solid rgba(47, 140, 255, 0.85);
    outline-offset: -2px;
}

.register-password-toggle__icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-password-toggle__icon--hide {
    display: none;
}

.register-password-toggle[aria-pressed="true"] .register-password-toggle__icon--show {
    display: none;
}

.register-password-toggle[aria-pressed="true"] .register-password-toggle__icon--hide {
    display: block;
}

.register-consents {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 8px 0 3px;
}

.register-consent-group {
    display: flex;
    flex-direction: column;
}

.register-consent {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    padding: 8px;
    color: #b9c3ce;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    gap: 10px;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.register-consent:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.05);
}

.register-consent:has(input[type="checkbox"]:focus-visible) {
    border-color: rgba(47, 140, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.08);
}

.register-consent input[type="checkbox"] {
    position: relative;
    display: grid;
    place-content: center;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.register-consent input[type="checkbox"]::after {
    width: 4px;
    height: 8px;
    margin-top: -2px;
    content: "";
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.35);
    transition: opacity 0.1s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.register-consent input[type="checkbox"]:checked {
    background: #318bf4;
    border-color: #318bf4;
    box-shadow: 0 3px 10px rgba(49, 139, 244, 0.24);
}

.register-consent input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.register-consent input[type="checkbox"]:active {
    transform: scale(0.9);
}

.register-consent input[type="checkbox"]:focus-visible {
    outline: none;
}

.register-consent__copy {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.register-consent__label {
    color: inherit;
    cursor: pointer;
}

.register-consent__label::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    border-radius: 10px;
}

.register-consent a {
    position: relative;
    z-index: 2;
    color: #72adf7;
    text-decoration: none;
    transition: color 0.15s ease;
}

.register-consent a:hover {
    color: #a6cbff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.register-consent-error {
    margin: 1px 8px 0 36px;
    color: #ff747c;
    font-size: 11px;
    line-height: 1.4;
}

.register-submit {
    height: 44px;
    margin-top: 6px;
    padding: 0 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: #318bf4;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(47, 140, 255, 0.12);
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.register-submit:hover {
    background: #4096fa;
    box-shadow: 0 6px 18px rgba(47, 140, 255, 0.18);
}

.register-submit:active {
    transform: translateY(1px);
}

.register-submit:focus-visible {
    outline: 2px solid #8fc0ff;
    outline-offset: 3px;
}

.register-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    color: #788491;
    font-size: 12.5px;
    gap: 6px;
}

.register-footer a {
    color: #72adf7;
    text-decoration: none;
}

.register-footer a:hover {
    color: #9cc7ff;
}

@media (max-width: 600px) {
    .register-page {
        align-items: flex-start;
        padding: 72px 14px 24px;
    }

    .register-back {
        top: 20px;
        left: 18px;
    }

    .register-card {
        padding: 22px 20px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .register-page *,
    .register-page *::before,
    .register-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.register-consent__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.45;
    gap: 2px;
}

.register-consent__label {
    color: #c9d2dc;
    font-weight: 500;
    cursor: pointer;
}

.register-consent__description {
    color: #778491;
    font-size: 11px;
}

.register-consent__legal {
    margin-top: 2px;
    color: #657b92 !important;
    font-size: 10.5px;
    text-decoration: none !important;
}

.register-consent__legal:hover {
    color: #8aa8c8 !important;
    text-decoration: underline !important;
}