/* [CL] SYNGLI-7014 the password reset page, on top of the sign-in page's styles */
/* [CL] fluid on phones: the sign-in block's fixed 375px width and row margins overflow there */
.password_reset .signin_block,
.password_reset > .row {
    margin-left: 0;
    margin-right: 0;
}

/* [CL] wide enough for an intro sentence on one line; vw keeps it inside a phone screen, where the
   page's centred, content-sized parents would otherwise let it overflow both edges */
.password_reset .password_reset_block {
    width: 100%;
    max-width: min(640px, 100vw);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    float: none;
}

.password_reset #password_reset_message {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

/* [CL] the fields, buttons and messages keep the sign-in page's narrower column below the wider intro */
.password_reset .password_reset_block form > :not(.password_reset_intro),
.password_reset .password_reset_block .btn-signin {
    max-width: 388px;
    margin-left: auto;
    margin-right: auto;
}

/* [CL] block, so the auto margins centre the narrower buttons */
.password_reset .btn-signin {
    display: block;
}

.password_reset .password_reset_intro {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.password_reset .btn-signin {
    width: 100%;
}

.password_reset .password_reset_intro strong {
    color: #004170;
}

/* [CL] one input over six drawn slots: in a monospace font each digit plus its letter spacing is
   one 2.9ch slot pitch (2.4ch slot + 0.5ch gap), and the 0.7ch left padding centres it in its slot */
.password_reset .password_reset_code_field {
    position: relative;
    width: 16.9ch;
    height: 52px;
    margin: 0 auto;
    /* [CL] clip, unlike hidden, can't be scrolled to the caret, which cut off the first slot */
    overflow: hidden;
    overflow: clip;
    font: 28px/1 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}

.password_reset .password_reset_code_slots {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 0.5ch;
    pointer-events: none;
}

.password_reset .password_reset_code_slots span {
    flex: 0 0 2.4ch;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.password_reset .password_reset_code_field:focus-within .password_reset_code_slots span.active {
    border: 2px solid #004170;
}

/* [CL] wider than the field, so the trailing letter spacing never scrolls the digits out of their slots */
.password_reset .password_reset_code {
    position: relative;
    width: 19ch;
    height: 100%;
    padding: 0 0 0 0.7ch;
    border: 0;
    outline: none;
    background: transparent;
    caret-color: transparent;
    font: inherit;
    letter-spacing: 1.9ch;
    color: #333;
}

.password_reset .password_reset_link {
    display: block;
    width: 100%;
    margin-top: 10px;
    color: #004170;
}

.password_reset .password_reset_actions {
    display: flex;
    gap: 10px;
}

.password_reset .password_reset_actions .password_reset_link {
    flex: 1;
}

.password_reset .password_reset_rules {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    color: #777;
}

.password_reset .password_reset_rules li::before {
    content: '\25CB';
    display: inline-block;
    width: 1.5em;
}

.password_reset .password_reset_rules li.met {
    color: #2e7d32;
}

.password_reset .password_reset_rules li.met::before {
    content: '\2713';
}

.password_reset .password_reset_back {
    margin-top: 20px;
    text-align: center;
}

.password_reset [hidden] {
    display: none !important;
}
