/* Nexthosting compatibility layer for Hostware's updated storefront markup. */

.nh-dd-icon {
    display: inline-block;
    width: 1.25rem;
    height: auto;
    margin-right: .5rem;
    color: inherit;
    background: none;
    text-align: center;
    vertical-align: middle;
}

.nh-dd-label {
    vertical-align: middle;
}

.nh-login-center,
.nh-register-shell {
    width: min(100%, 920px);
    margin-inline: auto;
}

.nh-login-center {
    width: min(100%, 560px);
}

.nh-login-card,
.nh-register-shell > form {
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 65px rgba(15, 23, 42, .12);
}

.nh-login-card {
    padding: 28px;
}

.nh-login-intro,
.nh-register-intro {
    margin-bottom: 24px;
    text-align: center;
}

.nh-login-intro-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #5143d9);
    box-shadow: 0 12px 28px rgba(81, 67, 217, .24);
}

.nh-login-intro-title,
.nh-register-intro-title {
    margin: 0;
    color: #0b1224;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.nh-login-intro-text,
.nh-register-intro-desc {
    margin: 8px auto 0;
    color: #64748b;
    line-height: 1.55;
}

.nh-register-shell > form {
    padding: 30px;
}

.nh-register-benefits {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.nh-register-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #4133b8;
    background: rgba(81, 67, 217, .09);
    font-size: .82rem;
    font-weight: 700;
}

.nh-register-body .hw-text-devider {
    margin-top: 24px;
}

.nh-login-fields .form-control,
.nh-register-body .form-control,
.nh-register-body .form-select {
    min-height: 46px;
    border-radius: 13px;
}

.nh-login-fields .btn,
.nh-register-body .btn {
    min-height: 46px;
    border-radius: 13px;
    font-weight: 750;
}

body.page-account-dashboard main.nh-account-page .hw-content-section > .hw-container > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-inline: 0;
}

body.page-account-dashboard main.nh-account-page .hw-content-section > .hw-container > .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
}

.nhkb-index,
.nhkb-article {
    --nhkb-ink: #0f172a;
    --nhkb-muted: #64748b;
    --nhkb-border: rgba(15, 23, 42, .09);
}

.nhkb-index > .row,
.nhkb-article > .row {
    align-items: flex-start;
}

.nhkb-index .card,
.nhkb-article .card {
    overflow: hidden;
    border: 1px solid var(--nhkb-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

.nhkb-index .card:hover {
    transform: translateY(-2px);
    border-color: rgba(81, 67, 217, .22);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .12);
}

.nhkb-article .card-header {
    padding: 24px 26px;
    border-bottom: 1px solid var(--nhkb-border);
    background: linear-gradient(135deg, rgba(81, 67, 217, .10), rgba(124, 58, 237, .05));
}

.nhkb-article .card-header h1 {
    color: var(--nhkb-ink);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.nhkb-article .card-body {
    padding: 26px;
    color: var(--nhkb-ink);
    font-size: 1.02rem;
    line-height: 1.75;
}

.nhkb-article .card-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    body.page-account-dashboard main.nh-account-page .hw-content-section > .hw-container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nh-register-shell > form {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    body.page-account-dashboard main.nh-account-page .hw-content-section > .hw-container > .row {
        grid-template-columns: 1fr;
    }

    .nh-login-card,
    .nh-register-shell > form {
        padding: 18px;
        border-radius: 18px;
    }
}

/* Match the compact pre-update Nexthosting authentication presentation while
   keeping Hostware 1.3.3's current form fields, captcha and validation. */
.nh-login-card {
    padding: 26px;
}

.nh-login-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #e7edf4;
    border-radius: 18px;
    background: #fbfcfe;
    text-align: left;
}

.nh-login-intro-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    border-radius: 14px;
}

.nh-login-intro-title {
    font-size: 1.08rem;
    letter-spacing: -.02em;
}

.nh-login-intro-text {
    margin-top: 4px;
    font-size: .92rem;
}

.nh-register-shell > form {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nh-register-intro {
    margin-bottom: 18px;
    padding: 16px 16px 14px;
    border: 1px solid #e7edf4;
    border-radius: 16px;
    background: #fbfcfe;
    text-align: left;
}

.nh-register-intro-title {
    font-size: 1rem;
    letter-spacing: -.02em;
}

.nh-register-intro-desc {
    margin-top: 5px;
    font-size: .93rem;
}

.nh-register-benefits {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.nh-register-benefits span {
    padding: 7px 11px;
    border: 1px solid #e6ebf1;
    color: #334155;
    background: #fff;
    font-size: .83rem;
}

@media (max-width: 575.98px) {
    .nh-register-shell > form {
        padding: 0;
    }
}
