* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.account-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 78px;
}

@media (max-width: 1440px) {
    .account-login {
        margin-bottom: 64px;
    }
}
@media (max-width: 1200px) {
    .account-login {
        margin-bottom: 48px;
    }
}
@media (max-width: 1024px) {
    .account-login {
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    .account-login {
        margin-bottom: 32px;
    }
}
@media (max-width: 480px) {
    .account-login {
        margin-bottom: 24px;
    }
}
@media (max-width: 375px) {
    .account-login {
        margin-bottom: 20px;
    }
}
.rules-title {
    max-width: 1720px;
    width: 100%;
    position: relative;
    margin-top: 40px;
}
.rules-title h2 {
    font-weight: 700;
    font-size: 80px;
    line-height: 96px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #F5F5F7;
    z-index: 0;
    top: 0;
    position: absolute;
    left: 0;
    font-family: "Oswald";
}
.rules-title h1 {
    font-weight: 700;
    position: absolute;
    font-size: 56px;
    line-height: 64px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #262626;
    z-index: 1;
    top: 48px;
    left: 0;
    font-family: "Oswald";
}

@media (max-width: 1720px) {
    .rules-title {
        width: 100%;
        max-width: 1720px;
    }
    .rules-title h1,
    .rules-title h2 {
        left: 60px;
    }
}
@media (max-width: 1440px) {
    .rules-title h1,
    .rules-title h2 {
        left: 60px;
    }
}
@media (max-width: 1200px) {
    .rules-title {
        margin-top: 24px;
    }
    .rules-title h1,
    .rules-title h2 {
        left: 40px;
    }
    .rules-title h2 {
        font-size: 60px;
        line-height: 72px;
    }
    .rules-title h1 {
        font-size: 42px;
        line-height: 50px;
        top: 36px;
    }
}
@media (max-width: 1024px) {
    .rules-title h1,
    .rules-title h2 {
        left: 16px;
    }
}
@media (max-width: 768px) {
    .rules-title {
        margin-top: 16px;
    }
    .rules-title h2 {
        font-size: 40px;
        line-height: 48px;
    }
    .rules-title h1 {
        font-size: 28px;
        line-height: 32px;
        top: 24px;
    }
}
@media (max-width: 480px) {
    .rules-title h2 {
        font-size: 32px;
        line-height: 40px;
    }
    .rules-title h1 {
        font-size: 24px;
        line-height: 28px;
        top: 20px;
    }
}

.section-login {
    width: 100%;
    max-width: 1720px;
    margin-top: 175px;
}

.auth {
    width: 406px;
    margin: 20px auto;
    border-radius: 4px;
    padding: 32px;
    border: 1px solid #E1E8F0;
}

.auth__submit {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #0080C7;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1.1px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    transition: all 0.45s ease;
    margin-top: 8px;
    margin-bottom: 16px;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.auth__submit:focus {
    background: #026FAC;
    transform: scale(0.98);
}

.auth__submit:hover {
    background: #0577B6;
}

.auth__submit:active {
    background: #026FAC;
    transform: scale(0.98);
}

.auth__register {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    font-weight: 500;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    line-height: 20px;
    letter-spacing: 0.38px;
    text-align: right;
    color: #ED1C24;
    margin-bottom: 32px;
    margin-top: 0;
    cursor: pointer;
    transition: all 0.45s ease;
    text-decoration-line: underline;
    text-decoration-color: #ED1C24;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-skip-ink: auto;
}
.auth__register:hover {
    color: #DF1A21;
    text-decoration-color: #DF1A21;
}
.auth__register:focus, .auth__register:active {
    color: #C1141C;
    text-decoration-color: #C1141C;
}
.auth__register img {
    width: auto;
    height: 12px;
    margin-top: 4px;
}

.auth__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #262626;
    margin-bottom: 24px;
    font-family: "Inter";
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.field label {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    margin-bottom: 6px;
    color: #262626;
    padding: 0 16px;
    font-family: "DM Sans", sans-serif;
}
.field input {
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 6px;
    background-color: #f5f5f7;
    border: 1px solid #8C8C8C;
}
.field input:focus {
    outline: none;
    border-color: #E1E8F0;
}
.field input::placeholder {
    color: #8C8C8C;
    font-family: "Inter";
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.field--password {
    position: relative;
}
.field--password .password-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'><path d='M12 5c-7.633 0-11 6.96-11 6.96s3.367 6.96 11 6.96 11-6.96 11-6.96-3.367-6.96-11-6.96zm0 11.6a4.64 4.64 0 1 1 0-9.28 4.64 4.64 0 0 1 0 9.28z'/></svg>") no-repeat center;
    border: none;
    cursor: pointer;
}

.auth__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 0;
    font-family: "DM Sans", sans-serif;
}
.remember__toggle {
    width: 36px;
    height: 20px;
    background: #F5F5F7;
    border-radius: 20px;
    position: relative;
    transition: all 0.2s ease-in-out;
    border: 0.5px solid #8C8C8C;
}
.remember__toggle::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 1px;
    left: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.remember.is-active .remember__toggle {
    background: #1e88e5;
}
.remember.is-active .remember__toggle::after {
    transform: translateX(16px);
}

.auth__forgot {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 0;
    font-family: "DM Sans", sans-serif;
    color: #0080C7;
    text-decoration: none;
}

.btn {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.38px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.45s ease;
    font-family: "DM Sans", sans-serif;
    margin-top: 8px;
}
.btn:hover {
    background: #0577B6;
}
.btn:focus {
    background: #026FAC;
    transform: scale(0.98);
}
.btn:active {
    background: #026FAC;
    transform: scale(0.98);
}
.btn--primary {
    background: #0080C7;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 1.1px;
}
.btn--yandex {
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 12px;
}
.btn--yandex:hover {
    background-color: #313131;
}
.btn--yandex:focus, .btn--yandex:active {
    background-color: #1C1C1C;
}

.btn--yandex {
    position: relative;
    gap: 16px;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    font-weight: 500;
}
.btn--yandex::before {
    content: "";
    display: block;
    width: 100%;
    height: 0.5px;
    background: #8C8C8C;
    position: absolute;
    top: -16px;
    left: 0;
}
.btn--yandex .yandex-icon {
    background: #ff3d00;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.password-recovery {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

@media (max-width: 1720px) {
    .section-login {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}
@media (max-width: 1440px) {
    .section-login {
        margin-top: 160px;
    }
}
@media (max-width: 1024px) {
    .section-login {
        margin-top: 120px;
        padding: 0 16px;
        width: calc(100% - 32px);
    }
    .section-login .auth {
        width: 100%;
        max-width: 400px;
        padding: 28px;
    }
}
@media (max-width: 768px) {
    .section-login {
        margin-top: 80px;
        padding: 0 4px;
        width: calc(100% - 24px);
    }
    .section-login .auth {
        max-width: 380px;
        padding: 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    .section-login .auth__register {
        font-size: 14px;
        line-height: 18px;
        justify-content: flex-end;
        text-align: right;
        margin-bottom: 24px;
        gap: 6px;
    }
    .section-login .auth__register img {
        height: 11px;
        margin-top: 3px;
    }
    .section-login .auth__title {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px) {
    .section-login {
        margin-top: 80px;
    }
    .section-login .auth {
        max-width: 100%;
        padding: 20px 12px;
    }
    .section-login .auth__register {
        font-size: 13px;
        line-height: 16px;
        justify-content: flex-end;
        text-align: right;
        margin-bottom: 20px;
        gap: 6px;
    }
    .section-login .auth__register img {
        height: 10px;
        margin-top: 2px;
    }
    .section-login .auth__title {
        font-size: 16px;
        line-height: 24px;
        text-align: center;
        margin-bottom: 16px;
    }
    .section-login .auth__form .field {
        margin-bottom: 14px;
    }
    .section-login .auth__form .field label {
        font-size: 11px;
        line-height: 18px;
        padding: 0 12px;
    }
    .section-login .auth__form .field input {
        height: 44px;
        padding: 0 12px;
        font-size: 15px;
        line-height: 22px;
    }
    .section-login .auth__form .field input::placeholder {
        font-size: 14px;
        line-height: 20px;
    }
    .section-login .auth__form .btn--yandex {
        position: relative;
        gap: 12px;
    }
    .section-login .auth__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    .section-login .auth .remember {
        font-size: 11px;
    }
    .section-login .auth .remember__toggle {
        width: 32px;
        height: 18px;
    }
    .section-login .auth .remember__toggle::after {
        width: 14px;
        height: 14px;
    }
    .section-login .auth .remember.is-active .remember__toggle::after {
        transform: translateX(14px);
    }
    .section-login .auth .auth__forgot {
        font-size: 11px;
        align-self: flex-end;
    }
    .section-login .auth .btn {
        height: 42px;
        font-size: 14px;
    }
    .section-login .auth .auth__submit {
        height: 42px;
        font-size: 14px;
    }

    .section-login .auth .btn--yandex::before {
        top: -12px;
    }
}
@media (max-width: 375px) {
    .section-login {
        margin-top: 80px;
    }
    .section-login .auth {
        padding: 16px 12px;
    }
    .section-login .auth__register {
        font-size: 12px;
        line-height: 14px;
        justify-content: flex-end;
        text-align: right;
        gap: 6px;
        margin-bottom: 16px;
    }
    .section-login .auth__register img {
        height: 10px;
        margin-top: 2px;
    }
    .section-login .auth__title {
        font-size: 15px;
        line-height: 22px;
    }
    .section-login .auth .field input {
        height: 42px;
        font-size: 14px;
    }
    .section-login .auth .field input::placeholder {
        font-size: 13px;
        line-height: 18px;
    }
    .section-login .auth .btn {
        height: 40px;
        font-size: 13px;
    }

    .section-login .auth .auth__submit {
        height: 40px;
        font-size: 13px;
    }
}

.auth-message {
    width: 406px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.auth-message--error {
    color: #B42318;
    background: #FEF3F2;
    border: 1px solid #FDA29B;
}

.auth__text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #262626;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 20px;
}

.auth__note {
    margin-top: 8px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #8C8C8C;
    font-family: "DM Sans", sans-serif;
    padding: 0;
}

.field--captcha .auth__captcha-image {
    margin-bottom: 12px;
    padding: 0 16px;
}

.field--captcha .auth__captcha-image img {
    display: block;
    border-radius: 6px;
    border: 1px solid #E1E8F0;
    max-width: 100%;
    height: auto;
}

.auth__submit {
    width: 100%;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #0080C7;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1.1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.45s ease;
    font-family: "DM Sans", sans-serif;
    margin-top: 8px;
    margin-bottom: 16px;
}

.auth__submit:hover {
    background: #0577B6;
}

.auth__submit:focus {
    background: #026FAC;
    transform: scale(0.98);
    outline: none;
}

.auth__submit:active {
    background: #026FAC;
    transform: scale(0.98);
}

.auth__bottom {
    margin-top: 4px;
}

.auth__back {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    color: #0080C7;
    text-decoration: none;
}

.auth__back:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .auth-message {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .auth__text {
        font-size: 13px;
        line-height: 18px;
        margin-bottom: 16px;
    }

    .auth__note {
        font-size: 11px;
        line-height: 16px;
        padding: 0 12px;
    }

    .auth__submit {
        height: 42px;
        font-size: 14px;
    }

    .auth__back {
        font-size: 13px;
        line-height: 18px;
    }
}

@media (max-width: 375px) {
    .auth__submit {
        height: 40px;
        font-size: 13px;
    }

    .auth__back {
        font-size: 12px;
        line-height: 16px;
    }
}

@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Regular.ttf);
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Medium.ttf);
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-SemiBold.ttf);
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Bold.ttf);
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Bold.ttf);
    font-weight: 700;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-Bold.ttf);
    font-weight: 700;
}