.tjma-login-wrap {
    display: grid;
    gap: 12px;
}

.tjma-login-help {
    margin-top: -2px;
    text-align: center;
}

.tjma-login-help a,
.tjma-secondary-link {
    color: #17458f;
    font-weight: 700;
    text-decoration: none;
}

.tjma-login-help a:hover,
.tjma-secondary-link:hover {
    text-decoration: underline;
}

.tjma-security-card {
    margin-top: 24px;
}

.tjma-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.tjma-card-head h3,
.tjma-card-head p {
    margin: 0;
}

.tjma-card-head p {
    margin-top: 6px;
    color: #64748b;
}

.tjma-security-badge {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf7f4;
    color: #167363;
    font-size: 13px;
    font-weight: 800;
}

.tjma-password-form,
.tjma-reset-form {
    display: grid;
    gap: 16px;
}

.tjma-password-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.tjma-password-form label,
.tjma-reset-form label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #172033;
    font-weight: 700;
}

.tjma-password-form input,
.tjma-reset-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tjma-password-form input:focus,
.tjma-reset-form input:focus {
    border-color: #17458f;
    box-shadow: 0 0 0 3px rgba(23, 69, 143, .13);
    outline: 0;
}

.tjma-password-form button,
.tjma-reset-form button,
.tjma-primary-link {
    min-height: 48px;
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: #f47b20;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(244, 123, 32, .18);
}

.tjma-password-form button {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 210px;
}

.tjma-password-form small {
    grid-column: 1 / -1;
    color: #64748b;
    line-height: 1.8;
}

.tjma-reset-page {
    direction: rtl;
    min-height: 60vh;
}

.tjma-reset-container {
    width: min(100% - 32px, 760px);
    margin-inline: auto;
}

.tjma-reset-page .tj-section-head {
    text-align: center;
}

.tjma-reset-card {
    max-width: 560px;
    margin: 24px auto 0;
    padding: 28px;
}

.tjma-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #172033;
    font-size: 18px;
}

.tjma-step span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #eaf0fb;
    color: #17458f;
    font-weight: 900;
}

.tjma-reset-form button,
.tjma-primary-link {
    display: inline-grid;
    width: 100%;
    place-items: center;
    box-sizing: border-box;
}

.tjma-secondary-link {
    display: block;
    margin-top: 18px;
    text-align: center;
}

.tjma-phone-mask {
    margin: -8px 0 18px;
    color: #475569;
    line-height: 1.9;
}

.tjma-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 760px) {
    .tjma-password-form {
        grid-template-columns: 1fr;
    }

    .tjma-password-form button,
    .tjma-password-form small {
        grid-column: auto;
    }

    .tjma-password-form button {
        width: 100%;
        min-width: 0;
    }

    .tjma-card-head {
        gap: 12px;
    }

    .tjma-reset-card {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .tjma-reset-container {
        width: min(100% - 20px, 760px);
    }

    .tjma-card-head {
        display: grid;
    }

    .tjma-security-badge {
        justify-self: start;
    }
}
