/* ==================================================================
 * HostRomeo — Client login page
 * Uses tokens from css/billing.css (loaded before this file).
 * ================================================================== */

.page-login #main-body { padding: 48px 0 64px; }
.page-login #main-body .main-content,
.page-login .main-content {
    min-height: 0 !important;
    width: 100% !important;
    float: none !important;
    display: block !important;
}

.hr-login,
.hr-login * { box-sizing: border-box; }
.hr-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--hr-line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(14, 16, 25, .35), 0 2px 6px rgba(15, 23, 42, .04);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    text-align: left;
}

/* ---------- Brand panel ---------- */
.hr-login__brand {
    position: relative;
    overflow: hidden;
    background: var(--hr-ink);
    color: rgba(255, 255, 255, .72);
    padding: 44px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
}
.hr-login__brand::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hr-gradient);
}
.hr-login__glow {
    position: absolute; pointer-events: none;
    width: 520px; height: 520px; right: -220px; bottom: -220px;
    background: radial-gradient(closest-side, rgba(255, 46, 147, .45), rgba(138, 63, 252, .25) 50%, rgba(14, 165, 233, .1) 70%, transparent 78%);
    animation: hr-login-float 12s ease-in-out infinite alternate;
}
@keyframes hr-login-float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, -30px) scale(1.08); }
}
.hr-login__brand > *:not(.hr-login__glow) { position: relative; }

.hr-login__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}
.hr-login__eyebrow i { color: var(--hr-pink); }
.hr-login .hr-login__headline {
    margin: 22px 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}
.hr-login .hr-login__lead { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .7); max-width: 360px; }

.hr-login__perks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hr-login__perks li { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.hr-login__perks li i {
    flex: none;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 15px;
}
.hr-login__perks li:nth-child(1) i { color: #ff7ab8; }
.hr-login__perks li:nth-child(2) i { color: #b48cff; }
.hr-login__perks li:nth-child(3) i { color: #5cc8f5; }
.hr-login__perks strong { display: block; color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 1px; }

.hr-login__brand-foot {
    font-size: 12.5px; color: rgba(255, 255, 255, .5);
    display: flex; align-items: center; gap: 8px;
}
.hr-login__brand-foot i { color: #34d399; }

/* ---------- Form panel ---------- */
.hr-login__panel { padding: 48px 48px 36px; display: flex; flex-direction: column; justify-content: center; }
.hr-login .hr-login__title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--hr-text); line-height: 1.2; }
.hr-login .hr-login__sub { font-size: 14.5px; color: var(--hr-muted); margin: 6px 0 28px; }

.hr-login__alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 12px; margin-bottom: 20px;
    font-size: 13.5px; font-weight: 600; border: 1px solid;
}
.hr-login__alert i { margin-top: 2px; }
.hr-login__alert--error { background: #fff1f3; border-color: #ffd0d9; color: #a11043; }
.hr-login__alert--info { background: #eff8ff; border-color: #cfe5ff; color: #1849a9; }
.hr-login .providerLinkingFeedback:empty { display: none; }

.hr-login__form { margin: 0; }
.hr-login__field { margin-bottom: 18px; }
.hr-login .hr-login__field label {
    display: block;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--hr-text) !important;
    margin: 0 0 8px !important;
}
.hr-login__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hr-login a.hr-login__forgot {
    font-size: 13px; font-weight: 600;
    color: var(--hr-purple) !important;
    text-decoration: none !important;
    margin-bottom: 8px;
}
.hr-login a.hr-login__forgot:hover { text-decoration: underline !important; }

.hr-login__control { position: relative; }
.hr-login__control > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--hr-faint); font-size: 15px; pointer-events: none;
    transition: color .15s ease;
}
.hr-login .hr-login__control input {
    display: block;
    width: 100% !important;
    height: 52px !important;
    padding: 0 48px 0 46px !important;
    margin: 0 !important;
    border: 1px solid var(--hr-line) !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: var(--hr-text) !important;
    font: 500 15px/1 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.hr-login .hr-login__control input::placeholder { color: #a0aec0; font-weight: 400; }
.hr-login .hr-login__control input:hover { border-color: #d5dbe6 !important; }
.hr-login .hr-login__control input:focus {
    outline: none !important;
    background: #fff !important;
    border-color: rgba(138, 63, 252, .6) !important;
    box-shadow: 0 0 0 4px rgba(138, 63, 252, .14) !important;
}
.hr-login__control:focus-within > i { color: var(--hr-purple); }

.hr-login .hr-login__reveal {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 36px !important; height: 36px !important; min-width: 0 !important;
    padding: 0 !important; margin: 0 !important;
    border: 0 !important; border-radius: 10px !important;
    background: transparent !important; box-shadow: none !important;
    color: var(--hr-muted) !important; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.hr-login .hr-login__reveal:hover { background: var(--hr-line-soft) !important; color: var(--hr-text) !important; }
.hr-login .hr-login__reveal:focus-visible { outline: none; box-shadow: var(--hr-focus) !important; }

.hr-login__caps {
    margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #b54708;
    display: flex; align-items: center; gap: 6px;
}
.hr-login__caps[hidden] { display: none; }

/* Remember me switch */
.hr-login .hr-login__remember {
    display: inline-flex !important; align-items: center; gap: 10px;
    margin: 4px 0 24px !important;
    font-size: 14px !important; font-weight: 500 !important; color: var(--hr-body) !important;
    cursor: pointer; user-select: none;
}
.hr-login__remember input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hr-login__switch {
    position: relative; flex: none;
    width: 38px; height: 22px; border-radius: 999px;
    background: #dfe4ec;
    transition: background .2s ease;
}
.hr-login__switch::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    transition: transform .2s ease;
}
.hr-login__remember input:checked + .hr-login__switch { background: var(--hr-gradient); }
.hr-login__remember input:checked + .hr-login__switch::after { transform: translateX(16px); }
.hr-login__remember input:focus-visible + .hr-login__switch { box-shadow: var(--hr-focus); }

/* Submit */
.hr-login .hr-login__submit {
    display: flex !important; align-items: center; justify-content: center; gap: 10px;
    width: 100% !important; min-width: 0 !important;
    height: 54px !important; padding: 0 24px !important; margin: 0 !important;
    border: 0 !important; border-radius: 999px !important;
    background: var(--hr-gradient) !important; background-size: 160% 100% !important;
    color: #fff !important;
    font: 800 15.5px/1 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: .01em;
    box-shadow: 0 14px 30px -12px rgba(255, 46, 147, .65) !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-position .35s ease;
}
.hr-login .hr-login__submit i { font-size: 13px; transition: transform .18s ease; }
.hr-login .hr-login__submit:hover {
    transform: translateY(-1px);
    background-position: 100% 0 !important;
    box-shadow: 0 18px 36px -14px rgba(255, 46, 147, .8) !important;
}
.hr-login .hr-login__submit:hover i { transform: translateX(3px); }
.hr-login .hr-login__submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 46, 147, .3) !important; }

/* Social sign-in */
.hr-login__divider {
    display: flex; align-items: center; gap: 14px;
    margin: 26px 0 18px;
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hr-faint);
}
.hr-login__divider::before, .hr-login__divider::after { content: ""; flex: 1; height: 1px; background: var(--hr-line); }
.hr-login__social .social-signin-btns { display: grid; gap: 10px; }
.hr-login__social .social-signin-btns a,
.hr-login__social .social-signin-btns button,
.hr-login__social .social-signin-btns .btn {
    width: 100% !important; height: 48px !important; margin: 0 !important;
    border-radius: 14px !important; font-weight: 600 !important; font-size: 14.5px !important;
    border: 1px solid var(--hr-line) !important; background: #fff !important; color: var(--hr-text) !important;
    box-shadow: none !important;
}
.hr-login__social .social-signin-btns a:hover,
.hr-login__social .social-signin-btns button:hover { border-color: rgba(138, 63, 252, .45) !important; background: #faf8ff !important; }

.hr-login__foot {
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid var(--hr-line-soft);
    text-align: center; font-size: 14px; color: var(--hr-muted);
}
.hr-login__foot a { font-weight: 700; color: var(--hr-purple) !important; text-decoration: none !important; }
.hr-login__foot a:hover { text-decoration: underline !important; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
    .hr-login { grid-template-columns: 1fr; max-width: 520px; }
    .hr-login__brand { padding: 30px 28px 24px; gap: 18px; }
    .hr-login .hr-login__headline { font-size: 26px; margin-top: 16px; }
    .hr-login__perks { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
    .hr-login__perks li { gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
    .hr-login__perks li i { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; }
    .hr-login__perks li span { font-size: 0; }
    .hr-login__perks strong { font-size: 12.5px; margin: 0; }
    .hr-login__brand-foot { display: none; }
    .hr-login__panel { padding: 30px 28px 28px; }
}
@media (max-width: 480px) {
    .page-login #main-body { padding: 20px 0 40px; }
    .hr-login { border-radius: 20px; }
    .hr-login__brand { padding: 24px 20px 20px; }
    .hr-login .hr-login__lead { display: none; }
    .hr-login__panel { padding: 26px 20px 24px; }
    .hr-login .hr-login__title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .hr-login__glow { animation: none; }
    .hr-login *, .hr-login *::after { transition: none !important; }
}

/* ==================================================================
 * Password reset (shares the login card)
 * ================================================================== */
.page-password-reset-container #main-body { padding: 48px 0 64px; }
.page-password-reset-container #main-body .main-content { width: 100% !important; float: none !important; display: block !important; min-height: 0 !important; }

.hr-reset__steps { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.hr-reset__steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.hr-reset__steps li + li::before {
    content: ""; position: absolute; left: 17px; top: -14px; width: 2px; height: 22px;
    background: rgba(255, 255, 255, .12);
}
.hr-reset__steps li.is-done + li::before { background: rgba(52, 211, 153, .5); }
.hr-reset__steps strong { display: block; color: rgba(255, 255, 255, .75); font-size: 14.5px; font-weight: 700; margin-bottom: 1px; }
.hr-reset__dot {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.hr-reset__steps li.is-active { color: rgba(255, 255, 255, .7); }
.hr-reset__steps li.is-active strong { color: #fff; }
.hr-reset__steps li.is-active .hr-reset__dot { background: var(--hr-gradient); border: 0; color: #fff; box-shadow: 0 8px 18px -8px rgba(255, 46, 147, .8); }
.hr-reset__steps li.is-done .hr-reset__dot { background: rgba(52, 211, 153, .15); border-color: rgba(52, 211, 153, .4); color: #34d399; font-size: 12px; }

.hr-reset__captcha { margin: 4px 0 18px; }
.hr-reset__captcha .row { margin: 0; }

.hr-reset__done { text-align: center; padding: 10px 0 4px; }
.hr-reset__done-icon {
    width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: var(--hr-gradient); color: #fff; box-shadow: 0 16px 30px -12px rgba(138, 63, 252, .6);
}
.hr-reset__done .hr-login__sub { margin-bottom: 24px; }

/* New password: feedback icons inside the field (driven by WHMCS strength script) */
.hr-login .hr-login__control .form-control-feedback {
    position: absolute; right: 16px; left: auto; top: 50%; transform: translateY(-50%);
    width: auto; height: auto; line-height: 1; font-size: 14px; pointer-events: none;
}
.hr-login .hr-login__control .form-control-feedback.glyphicon-password { display: none; }
.hr-login .has-success .hr-login__control .form-control-feedback { color: #10b981; }
.hr-login .has-warning .hr-login__control .form-control-feedback { color: #f59e0b; }
.hr-login .has-error .hr-login__control .form-control-feedback { color: #f43f5e; }
.hr-login .has-error .hr-login__control input { border-color: #fda4b8 !important; }
.hr-login .has-warning .hr-login__control input { border-color: #fcd34d !important; }
.hr-login .has-success .hr-login__control input { border-color: #6ee7b7 !important; }
.hr-login .has-feedback label { color: var(--hr-text) !important; }
.hr-login #inputNewPassword2Msg .help-block { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #c01048; }

.hr-pw-meter { margin: -6px 0 20px; }
.hr-pw-meter__label { font-size: 12px; font-weight: 700; color: var(--hr-muted); margin-bottom: 6px; }
.hr-pw-meter > br { display: none; }
.hr-pw-meter .progress {
    height: 8px !important; border-radius: 999px !important; background: var(--hr-line-soft) !important;
    box-shadow: none !important; margin: 0 0 12px !important; overflow: hidden;
}
.hr-pw-meter .progress-bar { background: var(--hr-faint) !important; border-radius: 999px !important; box-shadow: none !important; transition: width .3s ease, background-color .3s ease; }
.hr-pw-meter .progress-bar-danger { background: #f43f5e !important; }
.hr-pw-meter .progress-bar-warning { background: #f59e0b !important; }
.hr-pw-meter .progress-bar-success { background: linear-gradient(90deg, #10b981, #0EA5E9) !important; }
.hr-pw-meter .alert {
    margin: 0 !important; padding: 10px 14px !important; border-radius: 12px !important;
    background: #f8fafc !important; border: 1px solid var(--hr-line-soft) !important;
    color: var(--hr-muted) !important; font-size: 12.5px !important; line-height: 1.55; text-align: left !important;
}

.hr-reset__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hr-login input.hr-login__submit[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.hr-login .hr-reset__clear {
    height: 44px; border: 0; background: transparent; color: var(--hr-muted);
    font: 600 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer; border-radius: 999px;
}
.hr-login .hr-reset__clear:hover { background: var(--hr-line-soft); color: var(--hr-text); }
.hr-login a.hr-login__submit { text-decoration: none !important; }
