@import url('/css/base.css');

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.password-reset-page {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100svh;
    margin: 0;
    padding: 126px 16px 24px;
    place-items: center;
    overflow-x: hidden;
    color: #16364b;
    background: #0b3446 url('/images/hero/hero-image.jpg') center / cover fixed;
    font: 14px/1.5 'PT Sans', Arial, sans-serif;
}

.password-reset-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 38, 54, .48), rgba(5, 35, 47, .79));
    content: '';
}

.password-reset-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    margin: auto;
}

.password-reset-card {
    position: relative;
    isolation: isolate;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(1, 22, 34, .3);
}

.password-reset-card::after {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 128px;
    border-radius: 0 0 20px 20px;
    background: url('/images/elements/island.png') center bottom / 100% auto no-repeat;
    content: '';
    opacity: .88;
    pointer-events: none;
}

.password-reset-content {
    position: relative;
    z-index: 1;
    min-height: 430px;
    padding: 26px 30px 112px;
}

.password-reset-yacht {
    position: absolute;
    z-index: 2;
    top: -105px;
    right: 18px;
    width: 205px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(2, 22, 32, .26));
    pointer-events: none;
}

.password-reset-brand {
    display: inline-grid;
    gap: 1px;
    color: #073d76;
    line-height: 1.2;
    text-decoration: none;
}

.password-reset-brand strong {
    font: 600 18px/1.2 Georgia, 'Times New Roman', serif;
    letter-spacing: .015em;
}

.password-reset-brand span {
    color: #bd842a;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .25em;
}

.password-reset-heading {
    margin-top: 31px;
}

.password-reset-heading h1 {
    margin: 0 0 10px;
    color: #092f48;
    font: 500 clamp(25px, 4vw, 28px)/1.18 Georgia, 'Times New Roman', serif;
    letter-spacing: -.025em;
}

.password-reset-heading p {
    margin: 0;
    color: #687e8f;
    line-height: 1.55;
}

.password-reset-heading p + p {
    margin-top: 13px;
}

.password-reset-heading strong {
    display: block;
    margin-top: 2px;
    color: #153750;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.password-reset-heading .password-reset-hint {
    color: #9aabb8;
}

.password-reset-form {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.password-reset-form > label {
    margin-bottom: -7px;
    color: #16364b;
    font-size: 12px;
}

.password-reset-input {
    position: relative;
    display: flex;
    min-height: 45px;
    align-items: center;
    border: 1px solid #c9d8df;
    border-radius: 9px;
    background: #eef4f5;
    box-shadow: inset 0 1px 2px rgba(13, 54, 76, .04);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.password-reset-input:focus-within {
    border-color: #087f92;
    box-shadow: 0 0 0 3px rgba(8, 127, 146, .12);
}

.password-reset-input > svg {
    width: 20px;
    height: 20px;
    margin-left: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: #617a8b;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.password-reset-input input {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 15px;
    border: 0;
    outline: 0;
    color: #16364b;
    background: transparent;
    font: inherit;
    font-size: 14px;
}

.password-reset-input.has-icon input {
    padding-left: 12px;
}

.password-reset-input input::placeholder {
    color: #768997;
    opacity: 1;
}

.password-reset-submit {
    min-height: 46px;
    margin-top: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #087e90;
    box-shadow: 0 8px 18px rgba(8, 126, 144, .14);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background .16s ease, transform .16s ease;
    cursor: pointer;
}

.password-reset-submit:hover {
    background: #066e80;
}

.password-reset-submit:active {
    transform: translateY(1px);
}

.password-reset-submit:focus-visible,
.password-reset-back:focus-visible,
.otp-resend-form button:focus-visible,
.password-visibility-toggle:focus-visible {
    outline: 3px solid rgba(8, 127, 146, .28);
    outline-offset: 3px;
}

.password-reset-back {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 15px auto 0;
    color: #647b8d;
    font-size: 12px;
    text-decoration: none;
}

.password-reset-back:hover {
    color: #087e90;
}

.password-reset-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.password-reset-message {
    margin-top: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.password-reset-message.is-error {
    color: #982f34;
    background: #fff0f0;
}

.password-reset-message.is-success {
    color: #176545;
    background: #edf8f1;
}

.otp-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.otp-inputs input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 1px solid #cad9df;
    border-radius: 9px;
    outline: 0;
    color: #143950;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(13, 54, 76, .035);
    font: 500 20px/1 'PT Sans', Arial, sans-serif;
    text-align: center;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.otp-inputs input:focus {
    border-color: #00889c;
    box-shadow: 0 0 0 3px rgba(8, 127, 146, .13);
}

.otp-resend-copy {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 14px 0 0;
    color: #718595;
    font-size: 12px;
}

.otp-resend-form {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
}

.otp-resend-form button {
    padding: 0;
    border: 0;
    color: #ba7925;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.otp-resend-form button:disabled {
    cursor: wait;
}

.otp-resend-form span {
    color: #718595;
    font-variant-numeric: tabular-nums;
}

.password-with-toggle input {
    padding-right: 50px;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #617a8b;
    background: transparent;
    cursor: pointer;
}

.password-visibility-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.password-visibility-toggle .eye-slash {
    display: none;
}

.password-visibility-toggle.is-visible .eye-slash {
    display: block;
}

.password-rules {
    display: grid;
    gap: 5px;
    margin: 0 0 8px;
    padding: 0;
    color: #718595;
    font-size: 11px;
    list-style: none;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-rules li::before {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 1.5px solid #8ea1ad;
    border-radius: 50%;
    content: '';
}

.password-rules li.is-met {
    color: #18724f;
}

.password-rules li.is-met::before {
    border-color: #18724f;
    background: #18724f;
    box-shadow: inset 0 0 0 3px #fff;
}

.password-new-form {
    gap: 7px;
    margin-top: 14px;
}

.password-new-form .password-reset-submit {
    margin-top: 6px;
}

.password-reset-footnote {
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

@media (max-width: 520px) {
    body.password-reset-page {
        padding: 90px 14px 20px;
        background-attachment: scroll;
    }

    .password-reset-content {
        min-height: 410px;
        padding: 23px 22px 104px;
    }

    .password-reset-yacht {
        top: -82px;
        right: 13px;
        width: 150px;
    }

    .password-reset-heading {
        margin-top: 28px;
    }

    .password-reset-heading h1 {
        max-width: 340px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-inputs input {
        height: 44px;
        font-size: 19px;
    }

    .password-reset-card::after {
        height: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
