/* ========================================
   Ultimate Member — Password Reset
======================================== */

body.um-page-password-reset {
    --reset-primary: #4f6bff;
    --reset-violet: #7a61ff;
    --reset-text: #182238;
    --reset-muted: #7f899f;
    --reset-border: #e3e7f2;
    --reset-surface: #ffffff;
    --reset-field: #f9faff;
    --reset-background: #f5f7fc;

    background:
        linear-gradient(135deg,
            rgb(79 107 255 / 4%),
            transparent 45%),
        var(--reset-background);
}

/* Форма */

body.um-page-password-reset .um-form {
    position: relative;
    z-index: 2;

    margin: 0 !important;
}

/* Текст-інструкція */

body.um-page-password-reset .um-form>p,
body.um-page-password-reset .um-field-block {
    max-width: 470px;
    margin: 0 0 22px !important;

    color: var(--reset-muted) !important;

    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

/* Поле */

body.um-page-password-reset .um-field {
    margin-bottom: 22px !important;
}

body.um-page-password-reset .um-form input[type="text"],
body.um-page-password-reset .um-form input[type="email"],
body.um-page-password-reset .um-form input[type="password"] {
    width: 100% !important;
    min-height: 50px !important;
    padding: 0 15px !important;

    border: 1px solid var(--reset-border) !important;
    border-radius: 10px !important;
    outline: none !important;
    background: var(--reset-field) !important;

    color: var(--reset-text) !important;

    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.5 !important;

    box-shadow: none !important;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.um-page-password-reset .um-form input:hover {
    border-color: #cfd5e6 !important;
    background: #ffffff !important;
}

body.um-page-password-reset .um-form input:focus {
    border-color: var(--reset-primary) !important;
    background: #ffffff !important;

    box-shadow: 0 0 0 4px rgb(79 107 255 / 10%) !important;
}

body.um-page-password-reset .um-form input::placeholder {
    color: var(--reset-muted) !important;
    opacity: 1;
}

/* Кнопка */

body.um-page-password-reset .um-button,
body.um-page-password-reset input[type="submit"].um-button {
    display: block;

    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 12px 18px !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: linear-gradient(90deg,
            var(--reset-primary),
            var(--reset-violet)) !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-shadow: none !important;
    text-transform: none !important;

    box-shadow: 0 8px 18px rgb(79 107 255 / 18%) !important;

    opacity: 1 !important;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.um-page-password-reset .um-button:hover,
body.um-page-password-reset input[type="submit"].um-button:hover {
    color: #ffffff !important;

    box-shadow: 0 11px 22px rgb(79 107 255 / 24%) !important;

    transform: translateY(-1px);
}

/* Помилки */

body.um-page-password-reset .um-error {
    margin-bottom: 20px !important;
    padding: 12px 14px !important;

    border: 1px solid #ffd5dc !important;
    border-radius: 10px !important;
    background: #fff5f7 !important;

    color: #bd334b !important;

    font-size: 14px !important;
    line-height: 1.5 !important;

    box-shadow: none !important;
}

body.um-page-password-reset .um-error::before {
    display: none !important;
}

body.um-page-password-reset .um-field-error {
    margin-top: 7px !important;
    padding: 7px 9px !important;

    border-radius: 7px !important;
    background: #fff5f7 !important;

    color: #bd334b !important;

    font-size: 13px !important;
}

/* Повідомлення */

body.um-page-password-reset .um-notice {
    padding: 14px 16px !important;

    border: 1px solid #d7e1ff !important;
    border-radius: 10px !important;
    background: #f4f7ff !important;

    color: var(--reset-text) !important;

    box-shadow: none !important;
}

/* Автозаповнення */

body.um-page-password-reset input:-webkit-autofill {
    -webkit-text-fill-color: var(--reset-text) !important;

    box-shadow: 0 0 0 1000px var(--reset-field) inset !important;
}

/* Мобільна версія */

@media (max-width: 600px) {

    body.um-page-password-reset .um-form>p,
    body.um-page-password-reset .um-field-block {
        font-size: 14px !important;
    }

    body.um-page-password-reset .um-form input {
        font-size: 16px !important;
    }
}

body.um-page-login .entry-title,
body.um-page-register .entry-title,
body.um-page-password-reset .entry-title {
    display: none;
}

body.um-page-password-reset .custom-password-reset-card {
    position: relative;

    width: calc(100% - 32px);
    max-width: 600px;
    margin: 48px auto;
    padding: 46px 48px 40px;

    overflow: hidden;

    border: 1px solid var(--reset-border);
    border-radius: 20px;
    background: var(--reset-surface);

    box-shadow: 0 16px 45px rgb(16 34 73 / 8%);
}

body.um-page-password-reset .custom-password-reset-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 5px;

    background: linear-gradient(90deg,
            var(--reset-primary),
            var(--reset-violet));
}

body.um-page-password-reset .custom-password-reset-card::after {
    content: "";

    position: absolute;
    top: -72px;
    right: -72px;

    width: 160px;
    height: 160px;

    border-radius: 50%;
    background: linear-gradient(135deg,
            rgb(79 107 255 / 7%),
            rgb(180 74 255 / 12%));

    pointer-events: none;
}

body.um-page-password-reset .custom-password-reset-card>* {
    position: relative;
    z-index: 1;
}

/* Прибираємо другу картку навколо самої UM-форми */
body.um-page-password-reset .custom-password-reset-card .um {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: visible;

    border: 0;
    border-radius: 0;
    background: transparent;

    box-shadow: none;
}

body.um-page-password-reset .custom-password-reset-card .um::before,
body.um-page-password-reset .custom-password-reset-card .um::after {
    display: none;
}

@media (max-width: 768px) {
    .custom-auth-heading {
        max-width: 420px;
        margin-bottom: 26px;
    }

    .custom-auth-heading__title {
        font-size: 28px !important;
    }

    .custom-auth-heading__description {
        font-size: 15px !important;
    }
}

@media (max-width: 600px) {
    .custom-auth-heading {
        max-width: calc(100% - 50px);
        margin-bottom: 24px;
    }

    .custom-auth-heading__title {
        margin-bottom: 8px !important;

        font-size: 25px !important;
        line-height: 1.2 !important;
    }

    .custom-auth-heading__description {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 380px) {
    .custom-auth-heading {
        max-width: calc(100% - 32px);
    }

    .custom-auth-heading__title {
        font-size: 23px !important;
    }

    .custom-auth-heading__description {
        font-size: 13px !important;
    }
}

/* Картка: padding входить у задану ширину */
body.um-page-password-reset .custom-password-reset-card {
    box-sizing: border-box;
}

/* Усі елементи всередині також не повинні розширювати контейнер */
body.um-page-password-reset .custom-password-reset-card *,
body.um-page-password-reset .custom-password-reset-card *::before,
body.um-page-password-reset .custom-password-reset-card *::after {
    box-sizing: border-box;
}

/* Поле та кнопка не виходять за межі картки */
body.um-page-password-reset .custom-password-reset-card input,
body.um-page-password-reset .custom-password-reset-card .um-button {
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Мобільна картка */
@media (max-width: 600px) {
    body.um-page-password-reset .custom-password-reset-card {
        width: calc(100% - 24px);
        margin: 24px auto;
        padding: 38px 20px 28px;

        border-radius: 16px;
    }

    body.um-page-password-reset .custom-password-reset-card .um-button,
    body.um-page-password-reset .custom-password-reset-card input[type="submit"].um-button {
        display: block;

        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}