:root {
    --font-family-primary: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --purple: #6e0ad6;
    --orange: #f78300;
    --text: #1a1d23;
    --border: #ccd2dd;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: var(--font-family-primary);
    overflow-x: hidden;
}

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.password-header {
    height: 81px;
    padding: 0 max(4.65vw, 24px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-size: 14px; font-weight: 600; }
.logo-image { width: 40px; height: 40px; display: block; }
.mobile-back { display: none; }

.help-link {
    color: #111;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.help-icon {
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
}

.password-page {
    width: min(982px, calc(100% - 48px));
    margin: 17px auto 0;
    display: grid;
    grid-template-columns: 416px 504px;
    grid-template-areas: "intro card" "terms card";
    column-gap: 56px;
}

.password-intro { grid-area: intro; padding-top: 3px; }
.password-intro,
.password-card {
    min-width: 0;
}

.password-intro h1 {
    margin: 0 0 19px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -.4px;
}

.account-identity { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.account-identity strong { max-width: 370px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: #edf2f4;
}

.avatar-head { width: 12px; height: 13px; border-radius: 50%; position: absolute; top: 5px; left: 10px; background: #cbd9dd; }
.avatar-body { width: 23px; height: 15px; border-radius: 50% 50% 0 0; position: absolute; bottom: -4px; left: 4px; background: #cbd9dd; }

.password-card {
    grid-area: card;
    min-height: 352px;
    padding: 42px 55px 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.demo-label { margin: -25px 0 18px; color: #737b8d; font-size: 11px; text-align: center; }
label { display: block; margin-bottom: 8px; color: #111; font-size: 16px; font-weight: 600; }
.password-field { position: relative; }

input {
    max-width: 100%;
    width: 100%;
    height: 50px;
    padding: 0 50px 0 14px;
    border: 2px solid var(--purple);
    border-radius: 10px;
    outline: none;
    font: inherit;
}

.toggle-password {
    width: 42px;
    height: 46px;
    border: 0;
    position: absolute;
    top: 2px;
    right: 7px;
    color: var(--purple);
    background: transparent;
    cursor: pointer;
}

.toggle-password svg { width: 25px; height: 25px; }

.challenge {
    width: 300px;
    height: 66px;
    margin: 14px auto;
    padding: 0 9px;
    border: 1px solid #d8d8d8;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fafafa;
    font-size: 14px;
}

.check { width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #249452; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.challenge-brand { margin-left: auto; text-align: center; font-size: 9px; font-weight: 800; }
.challenge-brand small { display: block; font-size: 8px; font-weight: 400; }

.continue-demo {
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 26px;
    color: #fff;
    background: var(--orange);
    font: 600 16px var(--font-family-primary);
    cursor: pointer;
}

.demo-note { min-height: 16px; margin: 4px 0 0; color: #596274; text-align: center; font-size: 11px; }
.password-links { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; }

.password-terms {
    grid-area: terms;
    align-self: end;
    margin: 47px 0 0;
    color: #3e485c;
    font-size: 12px;
    line-height: 2;
}

@media (max-width: 760px) {
    .password-header { height: 81px; padding: 0 17px 0 28px; }
    .password-header .logo { display: none; }
    .mobile-back { color: #1a1d23; display: block; font-size: 29px; line-height: 1; }
    .mobile-back:hover { text-decoration: none; }

    .password-page {
        width: 100%;
        min-height: calc(100vh - 81px);
        margin: 0;
        padding: 28px 16px 30px;
        display: flex;
        flex-direction: column;
    }

    .password-intro { padding: 0; }
    .password-intro h1 { margin-bottom: 14px; font-size: 25px; line-height: 1.35; }
    .password-intro h1 br { display: none; }
    .account-identity strong { max-width: calc(100vw - 80px); font-size: 15px; }

    .password-card {
        width: 100%;
        min-height: 0;
        margin-top: 35px;
        padding: 25px 0 0;
        border: 0;
    }

    .demo-label { margin: -13px 0 14px; }
    .challenge { width: min(300px, 100%); }
    .password-links { gap: 16px; }
    .password-terms { margin: auto 4px 0; padding-top: 52px; text-align: center; }
}
