@font-face {
    font-family: "The Antiqua B";
    src: url("../../fonts/theantiquab-w6semibold-webfont.woff2") format("woff2"),
         url("../../fonts/theantiquab-w6semibold-webfont.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --login-black: #111;
    --login-red: #c8000b;
    --login-text: #2b303b;
    --login-background: #f5f6f8;
}

* { box-sizing: border-box; }
body.iframe {
    min-width: 0;
    margin: 0;
    color: var(--login-text);
    background: var(--login-background);
    font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.login-header {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}
.login-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100% - 40px, 1120px);
    height: 100%;
    margin: auto;
}
.login-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid #e3e3e3;
    border-radius: 24px;
    color: var(--login-text);
    text-decoration: none;
    font-weight: 600;
}
.login-header__back span { font-size: 24px; line-height: 16px; }
.login-header__brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.login-header__brand img { display: block; width: 165px; height: auto; }
.login-page { width: min(100% - 32px, 448px); margin: 32px auto 64px; }
.login-card, .login-subscription { background: #fff; border-radius: 8px; }
.login-card { padding: 32px; }
.login-tabs {
    display: flex;
    width: fit-content;
    margin: 0 auto 48px;
    padding: 3px;
    border: 1px solid #d9d9d9;
    border-radius: 24px;
    box-shadow: 0 2px 7px #0000000a;
}
.login-tabs > * {
    display: block;
    padding: 10px 19px;
    border-radius: 20px;
    color: var(--login-text);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.login-tabs__active { background: var(--login-text); color: #fff; }
.login-tabs a:hover { color: var(--login-red); }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; margin-bottom: 10px; font-weight: 600; }
.login-field input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid #9fa3aa;
    border-radius: 3px;
    background: #fff;
    color: var(--login-text);
    font: inherit;
}
.login-field input:focus-visible {
    outline: 2px solid var(--login-red);
    outline-offset: 1px;
}
.login-field input[aria-invalid="true"] { border-color: var(--login-red); }
.login-error { margin: 7px 0 0; color: var(--login-red); font-size: 13px; }
.login-password { position: relative; }
.login-password input { padding-right: 84px; }
.login-password button {
    position: absolute;
    top: 0;
    right: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--login-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.login-forgot {
    display: inline-block;
    margin: -2px 0 19px;
    color: var(--login-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    cursor: pointer;
}
.login-remember input { width: 16px; height: 16px; accent-color: var(--login-red); }
.login-submit {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 3px;
    background: var(--login-text);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.login-submit:hover { background: var(--login-black); }
.login-subscription { margin-top: 24px; padding: 26px 32px; }
.login-admin {
    margin-top: 16px;
    padding: 18px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.login-admin p { margin: 0 0 6px; }
.login-admin a { color: var(--login-red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.login-subscription h2 {
    margin: 0 0 10px;
    color: var(--login-black);
    font: 600 20px/1.3 "The Antiqua B", Georgia, serif;
}
.login-subscription p { margin: 0 0 16px; }
.login-subscription a { color: var(--login-red); font-weight: 600; text-decoration: none; }
.login-subscription a:hover { text-decoration: underline; }

.login-card--register .login-tabs { margin-bottom: 28px; }
.register-intro {
    margin: 0 18px 32px;
    color: var(--login-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}
.register-intro span { font-weight: 400; }
.register-required { margin: 0 0 20px; color: #717783; font-size: 13px; }
.register-hint { margin: 7px 0 0; color: #717783; font-size: 13px; }
.register-hint::before {
    content: "ⓘ";
    margin-right: 6px;
    color: var(--login-red);
}
.login-card--register .login-submit { margin-top: 8px; }

.login-card--reset { padding-top: 32px; padding-bottom: 32px; }
.reset-title {
    margin: 0 0 24px;
    color: var(--login-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
.reset-intro {
    margin: 0 0 28px;
    color: #4b515e;
    line-height: 1.5;
    text-align: center;
}
.reset-intro strong { font-weight: 600; }
.login-card--reset .login-field { margin-bottom: 32px; }
.reset-back {
    display: block;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    color: var(--login-text);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
.reset-back:hover { border-color: var(--login-red); color: var(--login-red); }
.reset-success {
    margin-bottom: 24px;
    padding: 16px;
    border-left: 3px solid var(--login-red);
    background: #f7f7f7;
}
.reset-success p { margin: 0; }
.reset-success p + p { margin-top: 8px; }

@media (max-width: 480px) {
    .login-header__inner { width: calc(100% - 24px); }
    .login-header__back { padding: 7px 10px; font-size: 13px; }
    .login-header__brand img { width: 130px; }
    .login-page { margin-top: 20px; }
    .login-card { padding: 24px 20px; }
    .login-tabs { margin-bottom: 36px; }
    .login-tabs > * { padding: 10px 14px; font-size: 13px; }
    .login-subscription { padding: 24px 20px; }
    .register-intro { margin-inline: 0; }
}
