.mail-login-layout {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 32px 22px;
    color: #fff;
}

.mail-login-container {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.mail-brand {
    font-size: clamp(42px, 6vw, 62px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-align: center;
    margin: 0 0 40px;
    color: #fff;
}

.mail-login-card {
    position: relative;
    width: 100%;
    padding: 38px 28px 28px;
    border-width: 1px;
    border-style: solid;
    border-radius: 24px;
}

.mail-login-title {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 34px;
    color: #fff;
}

.mail-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 23px;
}

.mail-field label {
    font-size: 13px;
    color: rgba(255,255,255,.85);
}

.mail-field input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 12px;
    outline: none;
    color: #fff;
    font-size: 15px;
    transition: border-color .2s, background .2s;
}

.mail-field input:focus {
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.12);
}

.mail-password {
    position: relative;
}

.mail-password input {
    padding-right: 48px;
}

.mail-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 48px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.65);
    cursor: pointer;
}

.mail-submit {
    width: 100%;
    height: 44px;
    margin-top: 5px;
    border-radius: 12px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.45);
    color: #252529;
    font-size: 14px;
    font-weight: 500;
}

.mail-credit {
    margin-top: 38px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

@media (max-width: 480px) {
    .mail-login-card {
        padding: 30px 22px 24px;
        border-radius: 22px;
    }

    .mail-brand {
        margin-bottom: 28px;
    }

    .mail-credit {
        margin-top: 28px;
    }
}

#login-error {
    color: #ffd0d0;
    font-size: 13px;
    margin-top: 14px;
    text-align: center;
}

.mail-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.mail-submit:not(:disabled) {
    cursor: pointer;
}

.mail-credit-link {
    color: inherit;
    font: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.mail-credit-link:hover {
    color: rgba(255,255,255,.95);
}

.mail-credit-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

#private-access .mail-field input:disabled {
    opacity: 1;
    cursor: default;
}

#private-access .mail-submit:disabled {
    opacity: 1;
    cursor: default;
}
