:root {
    --auth-color-text: #001f48;
    --auth-color-muted: #4d6380;
    --auth-color-border: #d9eafc;
    --auth-color-bg: #f7fbff;
    --auth-color-card: #ffffff;
    --auth-color-error: #c31818;
    --auth-gradient-primary: linear-gradient(90.64deg, #0b1fa1 1.52%, #1e17e0 98.31%);
    --auth-radius-card: 16px;
    --auth-radius-control: 14px;
}

.auth-flow-page {
    font-family: Manrope, sans-serif;
    padding: 156px 0 72px;
     background-image: url('/skin/ukexpes_skin/frontend/img/login-page/images/login-flow_bg.png?v=1');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.auth-flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.auth-flow-card {
    background: var(--auth-color-card);
    border-radius: var(--auth-radius-card);
}

.auth-flow-card--form {
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-flow-card--media {
    overflow: hidden;
    min-height: 100%;
    display: flex;
}

.auth-flow-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-flow-title {
    margin: 0 0 16px;
    color: var(--auth-color-text);
    font-family: Manrope;
    font-weight: 700;
    font-size: 48px;
    line-height: 140%;
    text-align: center;
}

.auth-flow-form {
    margin: 0;
}

.sign-form-body {
    max-width: 414px;
    width: 100%;
}

.auth-flow-form .sign-content {
    display: grid;
    gap: 24px;
}

.auth-flow-form .input-item {
    margin: 0;
}

.auth-flow-form .ui-field {
    position: relative;
    margin: 0;
}

.auth-flow-description {
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: #001F48;
    margin: 0 0 40px;
}

.auth-flow-form .ui-password-field__control-wrap {
    position: relative;
}

.auth-flow-form .ui-password-field__input {
    padding-right: 58px;
}

.auth-flow-form .ui-password-field__toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4d6380;
    cursor: pointer;
}

.auth-flow-form .ui-password-field__toggle:hover {
    color: #1e17e0;
    background: rgba(30, 23, 224, 0.08);
}

.auth-flow-form .ui-password-field__toggle:focus-visible {
    outline: 2px solid rgba(30, 23, 224, 0.35);
    outline-offset: 2px;
}

.auth-flow-form .ui-password-field__toggle.is-active {
    color: #1e17e0;
}

.auth-flow-form .ui-password-field__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-flow-form .ui-password-field__toggle-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.auth-flow-form .ui-password-field__toggle-icon--open {
    display: none;
}

.auth-flow-form .ui-password-field__toggle.is-active .ui-password-field__toggle-icon--open {
    display: inline-flex;
}

.auth-flow-form .ui-password-field__toggle.is-active .ui-password-field__toggle-icon--closed {
    display: none;
}

.auth-flow-form .input-item-submit {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-flow-password-actions {
    display: flex;
    justify-content: flex-start;
}

.auth-flow-forgot-link,
.auth-flow-footer a {
    color: #1e17e0;
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-decoration: underline;
}

@media (hover: hover) {
    .auth-flow-forgot-link:hover,
    .auth-flow-footer a:hover {
        text-decoration: underline;
        color: #1E17E0;
    }
}

.auth-flow-footer {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #001F48;
}

.auth-flow-forgot-success {
    display: none;
    justify-items: center;
    text-align: center;
}

.auth-flow-forgot-success__icon {
    width: min(320px, 100%);
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-flow-forgot-success__icon-image {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.auth-flow-forgot-success__title {
    margin: -65px 0 16px;
    font-family: Manrope;
    font-weight: 700;
    font-size: 48px;
    line-height: 140%;
    text-align: center;
    color: var(--auth-color-text);
    z-index: 1;
}

.auth-flow-forgot-success__text,
.auth-flow-forgot-success__note {
    margin: 0 0 16px;
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: #001F48;
}

.auth-flow-forgot-success__text:last-child {
    margin-bottom: 0;
}

.auth-flow-card--form.is-success .auth-flow-title,
.auth-flow-card--form.is-success .auth-flow-description,
.auth-flow-card--form.is-success .auth-flow-message-box {
    display: none;
}

.auth-flow-form .input-item-submit input[type="submit"] {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    border: 0;
    background: var(--auth-gradient-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-flow-form .input-item-submit input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 31, 161, 0.28);
}

.auth-flow-form .input-item-submit input[type="submit"]:active {
    transform: translateY(0);
}

.auth-flow-form .success-message {
    margin-top: 4px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f5132;
    background: #d1e7dd;
    display: none;
}

@media (max-width: 1200px) {
    .auth-flow-page {
        padding-top: 140px;
    }

    .auth-flow-grid {
        grid-template-columns: minmax(300px, 1fr) minmax(300px, 480px);
        gap: 16px;
    }

    .auth-flow-card--form {
        padding: 24px;
    }
}

@media (max-width: 960px) {
    .auth-flow-page {
        padding: 124px 0 56px;
    }

    .auth-flow-grid {
        grid-template-columns: 1fr;
    }

    .auth-flow-card--media {
        min-height: 380px;
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .auth-flow-page {
        padding: 108px 0 42px;
    }

    .auth-flow-page__container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-flow-card--form {
        padding: 18px;
        border-radius: 18px;
    }

    .auth-flow-card--media {
        min-height: 300px;
    }

    .auth-flow-head__item {
        font-size: 13px;
        min-height: 34px;
        padding: 8px 12px;
    }

    .auth-flow-form .input-item-submit {
        display: grid;
    }

    .auth-flow-form .input-item-submit input[type="submit"] {
        width: 100%;
    }

    .auth-flow-form .ui-btn--primary {
        width: 100%;
    }
}