.account-auth-page {
    position: relative;
    padding: 34px 0 56px;
}

.account-auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 244, 230, 0.82), transparent 28%),
        radial-gradient(circle at top right, rgba(226, 238, 255, 0.78), transparent 30%);
    pointer-events: none;
}

.account-auth-shell {
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.account-auth-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e7eef8 !important;
    border-radius: 32px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 30px 70px rgba(13, 29, 57, 0.08);
}

.account-auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 112px;
    background:
        radial-gradient(circle at top left, rgba(255, 244, 230, 0.72), transparent 56%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.74) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.account-auth-card-body {
    position: relative;
    padding: clamp(24px, 4vw, 40px) !important;
}

.account-auth-title {
    margin-bottom: 10px;
    color: #162952;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    text-align: center;
}

.account-auth-message {
    min-height: 1.4em;
    margin: 0 auto 20px;
    color: #d84d5f;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.account-auth-message b {
    color: inherit !important;
}

.account-auth-message.is-success {
    color: #3d7b4f;
}

.account-auth-form {
    margin-top: 20px !important;
}

.account-auth-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #677997 !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-auth-input.form-control {
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #dbe7f6 !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: #1b2f5b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.account-auth-input.form-control::placeholder {
    color: #8290aa;
}

.account-auth-input.form-control:focus {
    border-color: #bfd4f6 !important;
    box-shadow: 0 0 0 4px rgba(35, 136, 237, 0.12) !important;
}

.account-auth-page .form-row.row {
    margin-bottom: 16px !important;
}

.account-auth-page .form-row.row:last-of-type {
    margin-bottom: 0 !important;
}

.account-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    padding: 0 24px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #f2b544 0%, #ea8a28 100%) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow:
        0 18px 34px rgba(234, 138, 40, 0.22),
        0 6px 16px rgba(224, 126, 22, 0.12);
}

.account-auth-submit:hover,
.account-auth-submit:focus {
    transform: translateY(-1px);
    box-shadow:
        0 20px 38px rgba(234, 138, 40, 0.28),
        0 8px 18px rgba(224, 126, 22, 0.14);
}

.account-auth-before {
    gap: 14px 0;
}

.account-auth-before > .col-6:first-child,
.account-auth-before > .col-6:last-child {
    display: flex;
    align-items: center;
}

.account-auth-before > .col-6:first-child {
    justify-content: center;
}

.account-auth-loading {
    margin-bottom: 10px;
}

.account-auth-loading b {
    color: #d84d5f !important;
    font-size: 1.05rem !important;
}

.account-auth-link,
.account-auth-switch {
    color: #243b68 !important;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
}

.account-auth-link .text-primary,
.account-auth-switch .text-primary {
    color: inherit !important;
}

.account-auth-link:hover,
.account-auth-link:focus,
.account-auth-switch:hover,
.account-auth-switch:focus {
    color: #ea8a28 !important;
}

.account-auth-switch-wrap {
    margin-top: 10px;
}

.account-auth-support {
    margin: 18px 0 6px;
    color: #40557a;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.5;
}

.account-auth-support a {
    color: #ea8a28 !important;
    font-weight: 800;
    text-decoration: none;
}

.account-auth-support-link,
.account-auth-support-link strong {
    color: #ea8a28 !important;
}

.account-auth-support-note {
    margin-bottom: 16px;
    color: #7a89a5;
    font-size: 0.8rem !important;
}

.account-auth-disclaimer {
    color: #7282a0;
    font-size: 0.88rem;
    line-height: 1.7;
}

.account-auth-disclaimer a {
    color: #243b68 !important;
    text-decoration: none;
}

.account-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e6edf7;
    border-radius: 20px;
    background: #f8fbff;
}

.account-auth-check .form-check-label,
.account-auth-check-label {
    flex: 1 1 auto;
    margin: 0;
    color: #4f6285;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
}

.account-auth-check .form-check-input,
.account-auth-check-input {
    float: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 0.2rem;
    position: static;
    accent-color: #ea8a28;
    cursor: pointer;
}

.account-auth-check .form-check-label a,
.account-auth-check-label a {
    color: #243b68;
    text-decoration: none;
}

.account-auth-check .form-check-label a:hover,
.account-auth-check .form-check-label a:focus,
.account-auth-check-label a:hover,
.account-auth-check-label a:focus {
    color: #182b55;
}

.account-auth-page .loginBtn.loginBtn--facebook,
#modalLoginPopup .loginBtn.loginBtn--facebook,
#modalRegisterPopup .loginBtn.loginBtn--facebook {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-top: 12px !important;
    padding: 0 82px;
    border: 1px solid #155fca;
    border-radius: 999px;
    background: linear-gradient(180deg, #1877f2 0%, #1666d8 100%) !important;
    box-shadow: 0 16px 34px rgba(24, 119, 242, 0.22);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: none;
}

.account-auth-page .loginBtn.loginBtn--facebook::before,
#modalLoginPopup .loginBtn.loginBtn--facebook::before,
#modalRegisterPopup .loginBtn.loginBtn--facebook::before {
    content: "f";
    display: grid;
    place-items: center;
    top: 50%;
    left: 10px;
    width: 46px;
    height: 46px;
    padding-top: 0 !important;
    border-right: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    background-color: #ffffff;
    background-image: none !important;
    border: 0;
    box-shadow: 0 10px 22px rgba(13, 29, 57, 0.12);
    color: #1877f2;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.account-auth-page .loginBtn.loginBtn--facebook b,
#modalLoginPopup .loginBtn.loginBtn--facebook b,
#modalRegisterPopup .loginBtn.loginBtn--facebook b {
    margin-left: 0.28rem;
    color: inherit;
    font-weight: 800;
}

.account-auth-page .loginBtn.loginBtn--facebook:hover,
.account-auth-page .loginBtn.loginBtn--facebook:focus,
#modalLoginPopup .loginBtn.loginBtn--facebook:hover,
#modalLoginPopup .loginBtn.loginBtn--facebook:focus,
#modalRegisterPopup .loginBtn.loginBtn--facebook:hover,
#modalRegisterPopup .loginBtn.loginBtn--facebook:focus {
    background: linear-gradient(180deg, #166fe5 0%, #145ec4 100%) !important;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(24, 119, 242, 0.28);
}

#modalLoginPopup.account-auth-modal .modal-dialog,
#modalRegisterPopup.account-auth-modal .modal-dialog {
    max-width: 560px;
}

#modalLoginPopup .modal-content,
#modalRegisterPopup .modal-content {
    overflow: hidden;
    border: 1px solid #e7eef8;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 28px 68px rgba(13, 29, 57, 0.12);
}

#modalLoginPopup .modal-header,
#modalRegisterPopup .modal-header {
    padding: 22px 28px 0;
    border-bottom: 0;
}

#modalLoginPopup .modal-body,
#modalRegisterPopup .modal-body {
    padding: 12px 28px 30px;
    text-align: center;
}

.account-auth-modal-lead {
    max-width: 420px;
    margin: 0 auto 10px;
    color: #4f6285;
    font-size: 0.98rem;
    line-height: 1.75;
}

#modalRecoverPopup .account-auth-modal-lead {
    max-width: 520px;
    margin: 0 auto 6px;
    text-align: center;
}

#modalRegisterPopup .account-auth-modal-lead {
    max-width: 520px;
    margin: 0 auto 8px;
    text-align: center;
}

#modalLoginPopup .modal-title,
#modalRegisterPopup .modal-title {
    color: #162952;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.account-auth-modal-message {
    min-height: 0;
    margin: 0 auto 8px;
}

.account-auth-modal-message:empty {
    display: none;
    margin: 0;
}

#modalLoginPopup .account-auth-modal-form,
#modalRegisterPopup .account-auth-modal-form {
    margin-top: 0 !important;
    text-align: left;
}

#modalRecoverPopup .account-auth-modal-form {
    margin-top: 0 !important;
    text-align: left;
}

#modalLoginPopup .account-auth-label,
#modalRegisterPopup .account-auth-label,
#modalRecoverPopup .account-auth-label {
    margin-bottom: 6px;
}

#modalLoginPopup .account-auth-modal-form .form-group,
#modalRegisterPopup .account-auth-modal-form .form-group,
#modalRecoverPopup .account-auth-modal-form .form-group {
    margin-bottom: 0 !important;
}

#modalRecoverPopup .modal-body {
    padding-top: 8px;
}

#modalLoginPopup .account-auth-modal-form .form-row.row,
#modalRegisterPopup .account-auth-modal-form .form-row.row {
    margin-bottom: 6px !important;
}

#modalRecoverPopup .account-auth-modal-form .form-row.row {
    margin-bottom: 6px !important;
}

#modalRecoverPopup .account-auth-modal-form .form-row.row:first-child {
    margin-top: 0 !important;
}

#modalLoginPopup .account-auth-modal-form .account-auth-label,
#modalRegisterPopup .account-auth-modal-form .account-auth-label {
    text-align: left;
}

.account-auth-modal-actions--single {
    grid-template-columns: 1fr;
}

#modalLoginPopup .account-auth-modal-actions,
#modalRegisterPopup .account-auth-modal-actions {
    display: grid;
    gap: 16px;
    align-items: center;
}

#modalLoginPopup .account-auth-modal-actions .account-auth-link {
    text-align: center;
}

#modalLoginPopup .account-auth-modal-divider-wrap,
#modalRegisterPopup .account-auth-modal-divider-wrap {
    position: relative;
    margin: 20px 0 18px;
    text-align: center;
}

#modalLoginPopup .account-auth-modal-divider-wrap::before,
#modalRegisterPopup .account-auth-modal-divider-wrap::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e7eef8;
}

#modalLoginPopup .account-auth-modal-divider-wrap span,
#modalRegisterPopup .account-auth-modal-divider-wrap span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #fbfdff;
    color: #7282a0;
    font-size: 0.88rem;
    font-weight: 700;
}

#modalLoginPopup .account-auth-modal-switch,
#modalRegisterPopup .account-auth-modal-switch {
    margin-top: 16px;
    text-align: center;
}

#modalRecoverPopup .account-auth-modal-switch {
    margin-top: 12px;
    text-align: center;
}

#modalLoginPopup .account-auth-submit,
#modalRegisterPopup .account-auth-submit {
    margin: 0;
}

#modalLoginPopup .loginBtn.loginBtn--facebook,
#modalRegisterPopup .loginBtn.loginBtn--facebook {
    margin-top: 0 !important;
}

.account-auth-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
}

#modalRegisterPopup .account-auth-check {
    margin-bottom: 0;
    padding: 12px 16px;
}

#modalRegisterPopup .account-auth-check-label {
    display: block;
    margin: 0 !important;
    color: #4f6285 !important;
    font-size: 0.98rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.55 !important;
    text-align: left;
    text-transform: none !important;
}

#modalRegisterPopup .account-auth-check-label b {
    font-weight: 700;
}

#modalRegisterPopup .account-auth-check-input {
    margin-top: 0.18rem;
}

@media (max-width: 991px) {
    .account-auth-page {
        padding: 22px 0 44px;
    }
}

@media (max-width: 576px) {
    .account-auth-card {
        border-radius: 26px !important;
    }

    .account-auth-card-body {
        padding: 22px 18px !important;
    }

    .account-auth-title {
        font-size: 1.8rem;
    }

    .account-auth-page .loginBtn.loginBtn--facebook,
    #modalLoginPopup .loginBtn.loginBtn--facebook,
    #modalRegisterPopup .loginBtn.loginBtn--facebook {
        padding: 0 72px;
        min-height: 58px;
        font-size: 0.92rem;
    }

    #modalLoginPopup .modal-header,
    #modalRegisterPopup .modal-header {
        padding: 20px 20px 0;
    }

    #modalLoginPopup .modal-body,
    #modalRegisterPopup .modal-body {
        padding: 12px 20px 24px;
    }

    #modalLoginPopup .modal-title,
    #modalRegisterPopup .modal-title {
        font-size: 1.55rem;
    }

    .account-auth-page .form-row.row {
        margin-bottom: 14px !important;
    }
}

@media (max-width: 767.98px) {
    #modalLoginPopup.account-auth-modal .modal-dialog,
    #modalRegisterPopup.account-auth-modal .modal-dialog {
        max-width: 100vw;
        min-height: 100vh;
        height: 100vh;
        margin: 0;
    }

    #modalLoginPopup .modal-content,
    #modalRegisterPopup .modal-content {
        min-height: 100vh;
        height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
