:root {
    --brand-color: rgb(227, 6, 17);
    --brand-color-hover: #C9000D;
    --brand-color-soft: rgba(227, 6, 17, 0.08);
    --default-text-color: #111827;
    --default-back-color: #FFFFFF;
    --muted-text-color: #667085;
    --field-border-color: #E3E8EF;
    --field-border-hover-color: #D2DAE6;
    --field-focus-color: #C8D2DF;
    --pale-border-color: #E5E7EB;
    --footer-back-color: #F6F8FB;
}

body {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0;
    padding: 0;
    color: var(--default-text-color);
    font-family: MTSSans, sans-serif;
    font-style: normal;
    font-weight: 400;
    text-align: left;
}

body div.login * {
    font-family: MTSSans, sans-serif !important;
}

a {
    color: var(--brand-color);
    text-decoration: none;
}

p,
div,
span,
label,
a,
input,
button {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
}

.login_body.registrar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

.input.withErrors {
    border: 1px solid var(--brand-color) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 17, 0.08) !important;
}

.footer {
    display: flex;
    flex: none;
    justify-content: center;
    background: var(--footer-back-color);
}

.copyright {
    color: #8A94A3;
    font-size: 11px;
    line-height: 18px;
    margin-left: 0;
    padding: 10px 24px;
    box-sizing: border-box;
    opacity: 0.65;
    text-align: center;
}

.recovery-brand-header {
    flex: none;
    width: 100%;
    padding: 42px 20px 10px;
    box-sizing: border-box;
}

.recovery-brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 180px;
}

.recovery-logo {
    display: flex;
    align-items: center;
    flex: none;
}

.recovery-logo img {
    display: block;
}

.recovery-support-phone {
    color: #111827;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.recovery-support-phone:hover {
    color: var(--brand-color);
}

.recovery-page {
    flex: 1 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 72px 24px 48px;
    box-sizing: border-box;
}

.registrar .login.recovery-container {
    width: 100%;
    max-width: 440px;
    padding: 0;
    box-sizing: border-box;
    float: none;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.recovery-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.recovery-header-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-color-soft);
}

.recovery-lock-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
}

.recovery-header-content {
    min-width: 0;
}

.registrar div.login .login_sysname,
.registrar_sysname {
    width: auto;
    height: auto;
    padding: 0 0 6px 0 !important;
    color: var(--brand-color);
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
}

#pageHint {
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 20px;
    max-width: 360px;
}

.recovery-content {
    width: 100%;
}

.step {
    display: none;
    width: 100%;
}

body.recovery-step-request .step-request,
body.recovery-step-request-sms .step-request-sms,
body.recovery-step-email-info .step-email-info,
body.recovery-step-password .step-password,
body.recovery-step-success .step-success {
    display: block;
}

.recovery-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recovery-field {
    width: 100%;
}

.recovery-field-label,
.sms-field-label {
    display: block;
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    margin-bottom: 7px;
}

.registrar .recovery-input,
.registrar .sms-code-input {
    width: 100% !important;
    height: 42px !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
    border: 1px solid var(--field-border-color) !important;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--default-text-color);
    font-size: 15px;
    line-height: 21px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.registrar .recovery-input:hover,
.registrar .sms-code-input:hover {
    border-color: var(--field-border-hover-color) !important;
}

.registrar .recovery-input::placeholder,
.registrar .sms-code-input::placeholder {
    color: #A7B0BE;
    opacity: 0.88;
}

.registrar .recovery-input:focus,
.registrar .sms-code-input:focus {
    border-color: var(--field-focus-color) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 138, 160, 0.10);
}

.sms-code-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
}

.sms-code-box {
    width: 100%;
    height: 52px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--field-border-color);
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--default-text-color);
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sms-code-box:hover {
    border-color: var(--field-border-hover-color);
}

.sms-code-box:disabled {
    color: #98A2B3;
    background: #F8FAFC;
    border-color: #E8EDF4;
    box-shadow: none;
    cursor: default;
}

.sms-code-box:focus {
    border-color: var(--field-focus-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(120, 138, 160, 0.10);
}

.sms-code-boxes.withErrors .sms-code-box {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 17, 0.08);
}

.sms-confirmation {
    width: 100%;
}

.sms-recipient-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 13px 15px;
    box-sizing: border-box;
    border: 1px solid rgba(220, 226, 235, 0.70);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04);
    margin-bottom: 20px;
}

.sms-card-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(17, 49, 90, 0.08);
}

.sms-card-icon img {
    width: 22px;
    height: 22px;
}

.sms-card-label,
.sms-card-phone {
    color: #4B5563;
    font-size: 14px;
    line-height: 20px;
}

.sms-card-phone {
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sms-status {
    margin-top: 18px;
}

.sms-status-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 22px;
    color: var(--muted-text-color);
    font-size: 14px;
    line-height: 20px;
}

.sms-status-row + .sms-status-row {
    margin-top: 10px;
}

.sms-status-row span,
.sms-status-row a {
    font-size: 14px;
    line-height: 20px;
}

.sms-action-row {
    align-items: flex-start;
    column-gap: 9px;
}

.sms-action-row a {
    cursor: pointer;
}

.sms-action-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.sms-action-row .sms-resend-link,
.sms-action-row .sms-change-link {
    font-size: 13px;
    line-height: 18px;
}

.sms-resend-link.disabled {
    color: #98A2B3;
    cursor: default;
}

.sms-change-link {
    margin-left: 0;
    color: #667085;
    font-weight: 500;
    cursor: pointer;
}

.sms-change-link:hover {
    color: var(--brand-color);
}

.sms-attempts-row,
.sms-attempts-row span {
    color: #98A2B3;
    font-size: 13px;
    line-height: 18px;
    cursor: default;
}

.sms-attempts-row .sms-status-icon {
    opacity: 1;
}

.sms-status-icon {
    display: block;
    width: 19px;
    height: 19px;
    flex: none;
}

.sms-attempt-value {
    color: #4B5563;
    font-weight: 700;
}

.recovery-info {
    width: 100%;
    padding: 17px 18px;
    box-sizing: border-box;
    border: 1px solid #E8EDF4;
    border-radius: 14px;
    background: #FBFCFE;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.04);
}

.recovery-info-title {
    color: #1F2937;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.recovery-info-text,
.recovery-info-text span {
    color: #4B5563;
    font-size: 14px;
    line-height: 21px;
}

.registrar #errorFrame {
    display: none;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
}

.registrar #errorFrame > img {
    display: block;
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: 1px;
    opacity: 0.76;
}

.registrar #errorMessage {
    color: var(--default-text-color);
    font-size: 14px;
    line-height: 20px;
}

.recovery-actions {
    display: none;
    align-items: center;
    gap: 16px;
    padding-top: 26px;
}

body.recovery-step-request #requestActions,
body.recovery-step-request-sms #requestSmsActions,
body.recovery-step-email-info #emailInfoActions,
body.recovery-step-password #passwordActions,
body.recovery-step-success #successActions {
    display: flex;
}

.registrar #nextButton,
.registrar #submitButton,
.registrar #passwordButton,
.registrar #successActions .btn {
    width: 152px;
    height: 44px;
    margin-top: 0;
    border: 2px solid var(--brand-color);
    border-radius: 12px;
    color: #FFFFFF;
    background: var(--brand-color);
    box-shadow: 0 10px 24px rgba(227, 6, 17, 0.20);
    font-size: 15px;
    line-height: 21px;
    font-weight: 700;
    cursor: pointer;
    text-transform: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.registrar #nextButton:hover,
.registrar #submitButton:hover,
.registrar #passwordButton:hover,
.registrar #successActions .btn:hover {
    border-color: var(--brand-color-hover);
    background: var(--brand-color-hover);
    box-shadow: 0 12px 28px rgba(227, 6, 17, 0.24);
}

.registrar #nextButton:focus,
.registrar #submitButton:focus,
.registrar #passwordButton:focus,
.registrar #successActions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(227, 6, 17, 0.12), 0 10px 24px rgba(227, 6, 17, 0.20);
}

.registrar #nextButton.disabled,
.registrar #submitButton.disabled,
.registrar #passwordButton.disabled,
.registrar #submitButton:disabled {
    color: #7D8794;
    background: #F6F7F9;
    border-color: rgba(229, 231, 235, 0.55);
    box-shadow: none;
    cursor: default;
}

.registrar #nextButton.disabled:hover,
.registrar #submitButton.disabled:hover,
.registrar #passwordButton.disabled:hover,
.registrar #submitButton:disabled:hover {
    color: #7D8794;
    background: #F6F7F9;
    border-color: rgba(229, 231, 235, 0.55);
    box-shadow: none;
}

.registrar #returnLink,
.registrar .return-link {
    color: var(--brand-color);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
}

.registrar #returnLink:hover,
.registrar .return-link:hover {
    color: var(--brand-color-hover);
}

@media (max-width: 720px) {
    .recovery-brand-header {
        padding: 20px 16px 8px;
    }

    .recovery-brand-inner {
        align-items: flex-start;
    }

    .recovery-logo img {
        width: 142px;
        height: auto;
    }

    .recovery-support-phone {
        font-size: 13px;
        line-height: 18px;
    }

    .recovery-page {
        align-items: flex-start;
        padding: 44px 24px 40px;
    }

    .registrar .login.recovery-container {
        padding: 0;
        border-radius: 0;
    }

    .recovery-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    .recovery-header-icon {
        width: 48px;
        height: 48px;
    }

    .recovery-lock-icon {
        left: 12px;
        top: 12px;
        width: 24px;
        height: 24px;
    }

    .registrar div.login .login_sysname,
    .registrar_sysname {
        font-size: 24px;
        line-height: 30px;
        padding-bottom: 6px !important;
    }

    #pageHint,
    .sms-card-label,
    .sms-card-phone,
    .sms-status-row,
    .sms-status-row span,
    .sms-status-row a,
    .recovery-info-text,
    .recovery-info-text span {
        font-size: 14px;
        line-height: 21px;
    }

    .recovery-field-label,
    .sms-field-label,
    .recovery-info-title {
        font-size: 14px;
        line-height: 20px;
    }

    .registrar .recovery-input,
    .registrar .sms-code-input {
        height: 42px !important;
        font-size: 15px;
        line-height: 21px;
    }

    .sms-recipient-card {
        gap: 12px;
        padding: 14px 15px;
    }

    body.recovery-step-request #requestActions,
    body.recovery-step-request-sms #requestSmsActions,
    body.recovery-step-email-info #emailInfoActions,
    body.recovery-step-password #passwordActions,
    body.recovery-step-success #successActions {
        display: block;
        padding-top: 24px;
    }

    .recovery-actions .return-link {
        display: inline-block;
        margin-top: 16px;
    }

    .registrar #nextButton,
    .registrar #submitButton,
    .registrar #passwordButton,
    .registrar #successActions .btn {
        width: 100%;
    }
}
