.htr-login-card,
.htr-login-card *,
.login-page-card,
.login-page-card * {
    box-sizing: border-box;
}

.htr-login-backdrop.modal-backdrop,
#loginModal.htr-login-backdrop {
    z-index: 22150;
    background: rgba(4, 6, 12, 0.72);
    backdrop-filter: blur(6px);
}

.htr-login-card.modal,
#loginModal .htr-login-card {
    max-width: 420px;
    width: min(420px, calc(100vw - 28px));
    max-height: 92vh;
    overflow: auto;
    overflow-x: hidden;
    background: #111317;
    border: 1px solid #22262f;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 28px 24px 22px;
}

.htr-login-head {
    text-align: left;
    margin-bottom: 18px;
    position: relative;
}

.htr-login-head h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.htr-login-head p {
    margin: 0;
    color: #9aa3b2;
    font-size: 13px;
    line-height: 1.45;
}

.htr-login-card .modal-close,
.htr-login-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #c5cad3;
    cursor: pointer;
}

.htr-login-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #2c313c;
    background: #171a20;
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.htr-login-google:hover {
    background: #1c2028;
}

.htr-login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #8b93a3;
    font-size: 12px;
}

.htr-login-or::before,
.htr-login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #2a2e38;
}

.htr-login-field {
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.htr-login-field label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.htr-login-field input,
.htr-login-wrap input {
    width: 100%;
    max-width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #2c313c;
    border-radius: 10px;
    background: #171a20;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    display: block;
}

.htr-login-field input:focus,
.htr-login-wrap input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.htr-login-pass {
    position: relative;
}

.htr-login-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.htr-login-wrap input {
    padding-right: 46px;
}

.htr-login-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #8b93a3;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.htr-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
}

.htr-login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b4bcc8;
    font-size: 13px;
    cursor: pointer;
}

.htr-login-check input {
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
}

.htr-login-forgot {
    color: #3b82f6 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.htr-cf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid #3a404c;
    border-radius: 6px;
    background: #1a1d24;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.htr-cf-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.htr-cf-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.htr-cf-brand {
    text-align: right;
    color: #e5e7eb;
}

.htr-cf-name {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.htr-cf-name svg {
    width: 18px;
    height: 18px;
}

.htr-cf-links {
    margin-top: 2px;
    font-size: 10px;
}

.htr-cf-links a {
    color: #60a5fa;
    text-decoration: underline;
}

.htr-login-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #3b6cff;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none !important;
}

.htr-login-submit:hover {
    filter: brightness(1.06);
}

.htr-login-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #2a2e38;
    text-align: center;
    color: #9aa3b2;
    font-size: 13px;
}

.htr-login-foot a {
    color: #3b82f6 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.htr-login-recaptcha {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.login-page-card .htr-login-head h3 {
    font-size: 26px;
}

.htr-login-card form,
.login-page-card form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
