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

* {
    box-sizing: border-box;
}

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

html,
body {
    overflow-x: hidden;
}

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

a {
    color: var(--purple);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.access-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,
.mobile-heading {
    display: none;
}

.warning-wrap {
    margin-left: auto;
    position: relative;
}

.warning-icon {
    width: 21px;
    height: 21px;
    border: 1.5px solid #111827;
    border-radius: 50%;
    color: #111827;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
}

.email-tooltip {
    width: 190px;
    padding: 17px 15px;
    border-radius: 6px;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 30px;
    color: #fff;
    background: #3d4659;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.email-method:hover .email-tooltip,
.email-method:focus .email-tooltip,
.warning-wrap:focus-within .email-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.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;
    line-height: 1;
}

.access-page {
    width: min(976px, calc(100% - 48px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 448px 440px;
    grid-template-areas:
        "account methods"
        "terms methods";
    column-gap: 56px;
}

.account-info {
    grid-area: account;
}

.account-info h1 {
    margin: 0 0 21px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -.5px;
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.account-identity strong {
    max-width: 390px;
    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;
}

.method-panel {
    grid-area: methods;
    padding-top: 22px;
}

.method-card {
    width: 100%;
    min-height: 85px;
    margin-bottom: 8px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #111;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.method-card:hover,
.method-card:focus-visible {
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(27, 31, 40, .08);
    text-decoration: none;
    outline: none;
}

.email-method {
    cursor: pointer;
    color: #111;
    background: #fff;
}

.email-method:hover,
.email-method:focus-visible {
    border-color: var(--purple);
    box-shadow: 0 2px 8px rgba(27, 31, 40, .08);
}

.email-method .method-icon,
.email-method .method-copy {
    opacity: 1;
}

.desktop-email-arrow {
    display: none;
}

.method-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.method-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.method-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.method-copy strong {
    font-size: 20px;
    line-height: 1.3;
}

.method-copy small {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow {
    margin-left: auto;
    font-family: var(--font-family-secondary);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.back-link {
    width: max-content;
    margin: 15px auto 0;
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.access-terms {
    grid-area: terms;
    align-self: end;
    max-width: 416px;
    margin: 48px 0 0;
    color: #3e485c;
    font-size: 12px;
    line-height: 2;
}

@media (max-width: 760px) {
    .access-header {
        height: 81px;
        padding: 0 18px;
    }

    .access-header .logo {
        display: none;
    }

    .mobile-back {
        color: #1a1d23;
        display: block;
        font-size: 29px;
        font-weight: 300;
        line-height: 1;
    }

    .mobile-back:hover,
    .mobile-back:focus-visible {
        text-decoration: none;
    }

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

    .desktop-heading {
        display: none;
    }

    .mobile-heading {
        display: block;
    }

    .mobile-heading h1 {
        margin: -7px 0 4px;
        font-size: 23px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: 0;
    }

    .mobile-heading p {
        margin: 0 0 9px;
        font-size: 16px;
        line-height: 1.45;
    }

    .account-identity strong {
        max-width: calc(100vw - 115px);
        font-size: 15px;
    }

    .method-panel {
        padding-top: 47px;
    }

    .method-card {
        min-height: 82px;
        padding: 11px 13px;
    }

    .email-method {
        min-height: 82px;
        color: #111;
        background: #fff;
    }

    .email-method:hover {
        border-color: var(--purple);
        box-shadow: 0 2px 8px rgba(27, 31, 40, .08);
    }

    .email-method .method-icon {
        filter: none;
        opacity: 1;
    }

    .email-method .method-copy {
        opacity: 1;
    }

    .email-method .method-copy small {
        max-width: 215px;
        white-space: normal;
        line-height: 1.9;
    }

    .desktop-email-arrow {
        display: none;
    }

    .warning-icon {
        width: 21px;
        height: 21px;
        margin-left: auto;
        border: 1.5px solid #111827;
        border-radius: 50%;
        color: #111827;
        display: grid;
        flex: 0 0 21px;
        place-items: center;
        font-size: 14px;
        font-weight: 700;
    }

    .email-tooltip {
        width: 176px;
        top: 31px;
        right: -2px;
        left: auto;
        transform: translateY(0);
    }

    .email-method:hover .email-tooltip,
    .email-method:focus .email-tooltip,
    .warning-wrap:focus-within .email-tooltip {
        transform: translateY(0);
    }

    .back-link {
        display: none;
    }

    .method-copy strong {
        font-size: 18px;
    }

    .method-copy small {
        font-size: 12px;
    }

    .access-terms {
        margin: auto 4px 0;
        padding-top: 58px;
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .access-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .method-card {
        gap: 9px;
    }

    .method-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }
}

.method-card.is-disabled,
.method-card[aria-disabled="true"] {
    opacity: 0.3;
    filter: grayscale(100%);
    background-color: #f2f3f5;
    border-color: #d7dbe2;
    color: #8a909b;
    box-shadow: none;
    cursor: not-allowed;
    user-select: none;
}

.method-card.is-disabled:hover,
.method-card.is-disabled:focus-visible,
.method-card[aria-disabled="true"]:hover,
.method-card[aria-disabled="true"]:focus-visible {
    border-color: #d7dbe2;
    background-color: #f2f3f5;
    box-shadow: none;
    text-decoration: none;
    outline: none;
}

.method-card.is-disabled .method-icon,
.method-card.is-disabled .method-copy,
.method-card.is-disabled .arrow,
.method-card[aria-disabled="true"] .method-icon,
.method-card[aria-disabled="true"] .method-copy,
.method-card[aria-disabled="true"] .arrow {
    opacity: 0.65;
    color: #8a909b;
}

.method-card.is-disabled svg,
.method-card[aria-disabled="true"] svg {
    filter: grayscale(100%);
}
