:root {
    --register-bg: #f1f6fa;
    --register-blue: #398fc2;
    --register-blue-dark: #2878a8;
    --register-text: #202b36;
    --register-muted: #718096;
    --register-border: #dce5ed;
    --register-white: #ffffff;
    --register-error: #d14343;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--register-bg);
    color: var(--register-text);
    font-family: Tahoma, Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

a {
    color: var(--register-blue-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.register-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
}

.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    min-height: 48px;
}

.register-brand {
    color: var(--register-blue-dark);
    font-size: 18px;
    font-weight: 700;
    direction: ltr;
}

.register-language {
    display: inline-flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.register-language select {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100px;
    padding: 6px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--register-text);
    font-size: 13px;
    cursor: pointer;
}

.register-language select option {
    background: #ffffff;
    color: var(--register-text);
}

.register-language svg {
    display: block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.register-content {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 35px 0;
}

.register-card {
    width: 100%;
    max-width: 460px;
    padding: 34px;
    border: 1px solid rgba(220, 229, 237, 0.8);
    border-radius: 20px;
    background: var(--register-white);
    box-shadow: 0 12px 36px rgba(36, 73, 100, 0.06);
}

.register-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 22px;
    border-radius: 18px;
    background: var(--register-blue);
    color: var(--register-white);
    font-size: 38px;
    font-weight: 700;
    direction: ltr;
}

.register-title {
    margin: 0;
    text-align: center;
    font-size: 25px;
    line-height: 1.8;
}

.register-subtitle {
    margin: 8px 0 28px;
    color: var(--register-muted);
    text-align: center;
    font-size: 13px;
    line-height: 2;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid var(--register-border);
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: var(--register-text);
    font-size: 14px;
    text-align: start;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    border-color: var(--register-blue);
    box-shadow: 0 0 0 3px rgba(57, 143, 194, 0.12);
}

.form-field input::placeholder {
    color: #a1adba;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-inline-end: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--register-muted);
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 1px;
    color: var(--register-muted);
    font-size: 12px;
    line-height: 1.9;
}

.register-terms input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    accent-color: var(--register-blue);
}

.register-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 3px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    background: var(--register-blue);
    color: var(--register-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.register-submit:hover {
    background: var(--register-blue-dark);
}

.register-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.register-message {
    display: none;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.register-message.error {
    display: block;
    background: #fff0f0;
    color: var(--register-error);
}

.register-message.success {
    display: block;
    background: #edf9f0;
    color: #237640;
}

.register-login {
    margin: 23px 0 0;
    color: var(--register-muted);
    text-align: center;
    font-size: 13px;
    line-height: 2;
}

.register-login a {
    font-weight: 700;
}

.register-footer {
    padding: 10px 0 3px;
    color: var(--register-muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .register-page {
        padding: 13px 16px 18px;
    }

    .register-content {
        padding: 24px 0;
    }

    .register-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .register-title {
        font-size: 23px;
    }

    .register-subtitle {
        margin-bottom: 23px;
    }
}