/* Login page: sign in, admin sign in and Forgot Password. */

body.login .body-wrapper .form-panel .resetLink,
body.login .body-wrapper .form-panel .resetLink label.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin: 0;
}
body.login .body-wrapper .form-panel .resetLink {
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Forgot Password: a link under the password, and a panel that takes the
   login form's place, in the same inputs and buttons. */
body.login .body-wrapper .form-panel .forgot-link {
    margin: -18px 0 24px;
    text-align: right;
    font-size: 14px;
    line-height: 20px;
}
body.login .body-wrapper .form-panel .forgot-link a { color: #000; }
#resetPanel .reset-intro {
    margin: -14px 0 28px;
    font-size: 15px;
    line-height: 22px;
    color: #535353;
}
#resetPanel .reset-steps {
    display: flex;
    gap: 6px;
    margin: -10px 0 26px;
}
#resetPanel .reset-steps span {
    flex: 1;
    height: 3px;
    background: #D8D8D8;
    transition: background .2s;
}
#resetPanel .reset-steps span.done { background: #000; }
#resetPanel .reset-step { display: none; }
#resetPanel .reset-step.active { display: block; }
/* The code: six underlined cells drawn from one real input laid over
   them, so typing, pasting and the phone's code autofill all just work. */
#resetPanel .otp-field {
    position: relative;
    margin-bottom: 30px;
}
#resetPanel .otp-cells {
    display: flex;
    gap: 12px;
}
#resetPanel .otp-cells span {
    position: relative;
    flex: 1;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #535353;
    font-size: 28px;
    font-weight: 600;
    color: #000;
    transition: border-color .15s, box-shadow .15s;
}
#resetPanel .otp-field.focused .otp-cells span.active {
    border-bottom-color: #000;
    box-shadow: 0 1px 0 #000;
}
#resetPanel .otp-field.focused .otp-cells span.active:empty::after {
    content: '';
    width: 1px;
    height: 28px;
    background: #000;
    animation: otp-caret 1s step-end infinite;
}
#resetPanel .otp-field.error .otp-cells span,
#resetPanel .otp-field.error.focused .otp-cells span.active {
    border-bottom-color: #c0392b;
    box-shadow: none;
}
@keyframes otp-caret { 50% { opacity: 0; } }
body.login .body-wrapper .form-panel #resetPanel input.otp-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    font-size: 16px;
    outline: none;
    cursor: text;
    z-index: 1;
}
#resetPanel input.otp-input::selection { background: transparent; }
@media (max-width: 767px) {
    #resetPanel .otp-cells { gap: 8px; }
    #resetPanel .otp-cells span { height: 52px; font-size: 24px; }
}
#resetPanel .reset-hint {
    margin: -18px 0 24px;
    font-size: 13px;
    line-height: 18px;
    color: #858585;
}
#resetPanel .reset-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    font-size: 14px;
    line-height: 20px;
}
#resetPanel .reset-links a { color: #000; }
#resetPanel .reset-links a.disabled { color: #9B9B9B; pointer-events: none; }
#resetPanel .reset-success {
    display: none;
    margin-bottom: 20px;
    padding: 10px 12px;
    border-left: 3px solid #000;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
}
#resetPanel .reset-error {
    display: none;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #fdf0ed;
    border-left: 3px solid #c0392b;
    border-radius: 2px;
}
@media (max-width: 767px) {
    body.login .body-wrapper .form-panel .forgot-link { margin-top: -14px; }
}
