.hpro-customer-auth {
    --hpro-auth-primary: var(--hpro-customer-primary, var(--primary-color, #206bc4));
    --hpro-auth-primary-dark: var(--hpro-customer-primary-hover, #174f94);
    --hpro-auth-heading: var(--hpro-customer-heading, #172033);
    --hpro-auth-text: var(--hpro-customer-text, #5f6b7a);
    --hpro-auth-muted: #8a94a6;
    --hpro-auth-border: var(--hpro-customer-border, #dfe5ee);
    --hpro-auth-panel: var(--hpro-customer-surface, #ffffff);
    --hpro-auth-soft: var(--hpro-customer-soft, #f6f8fb);
    --hpro-auth-radius: var(--hpro-customer-radius, 16px);
    --hpro-auth-danger: #d63939;
    --hpro-auth-success: #2fb344;
    --hpro-auth-warning: #f59f00;
    padding: 72px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.hpro-customer-auth *,
.hpro-customer-auth *::before,
.hpro-customer-auth *::after {
    box-sizing: border-box;
}

.hpro-customer-auth__shell {
    width: min(100%, 720px);
    margin: 0 auto;
}

.hpro-customer-auth__page-head {
    margin-bottom: 22px;
}

.hpro-customer-auth__page-head span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--hpro-auth-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hpro-customer-auth__page-head h1 {
    margin: 0;
    color: var(--hpro-auth-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.hpro-customer-auth__card {
    overflow: hidden;
    border: 1px solid var(--hpro-auth-border);
    border-radius: calc(var(--hpro-auth-radius) + 2px);
    background: var(--hpro-auth-panel);
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.10);
}

.hpro-customer-auth__banner img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.hpro-customer-auth__header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 34px 38px 12px;
}

.hpro-customer-auth__icon {
    display: inline-flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: var(--hpro-auth-radius);
    background: rgba(32, 107, 196, 0.10);
    color: var(--hpro-auth-primary);
}

.hpro-customer-auth__icon svg,
.hpro-customer-auth .auth-input-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.hpro-customer-auth__header h2 {
    margin: 0 0 8px;
    color: var(--hpro-auth-heading);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.14;
}

.hpro-customer-auth__header p {
    margin: 0;
    color: var(--hpro-auth-text);
    font-size: 15px;
    line-height: 1.7;
}

.hpro-customer-auth__body {
    padding: 18px 38px 38px;
}

.hpro-customer-auth form {
    display: block;
    margin: 0;
}

.hpro-customer-auth .mb-3 {
    margin-bottom: 18px;
}

.hpro-customer-auth .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    margin: 2px 0 18px;
}

.hpro-customer-auth .col-6 {
    min-width: 0;
}

.hpro-customer-auth .text-end {
    text-align: right;
}

.hpro-customer-auth .d-grid {
    display: grid;
}

.hpro-customer-auth .position-relative {
    position: relative;
}

.hpro-customer-auth .form-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--hpro-auth-heading);
    font-size: 14px;
    font-weight: 650;
}

.hpro-customer-auth .form-control {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--hpro-auth-border);
    border-radius: calc(var(--hpro-auth-radius) - 4px);
    background: #fff;
    color: var(--hpro-auth-heading);
    font: inherit;
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hpro-customer-auth .form-control.ps-5 {
    padding-left: 50px;
}

.hpro-customer-auth .form-control:focus {
    border-color: var(--hpro-auth-primary);
    box-shadow: 0 0 0 4px rgba(32, 107, 196, 0.12);
}

.hpro-customer-auth .form-control::placeholder {
    color: var(--hpro-auth-muted);
}

.hpro-customer-auth .auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: var(--hpro-auth-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.hpro-customer-auth .form-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hpro-auth-text);
    font-size: 14px;
    cursor: pointer;
}

.hpro-customer-auth .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--hpro-auth-primary);
}

.hpro-customer-auth .form-check-label {
    line-height: 1.4;
}

.hpro-customer-auth a {
    color: var(--hpro-auth-primary);
    text-decoration: none;
}

.hpro-customer-auth a:hover {
    color: var(--hpro-auth-primary-dark);
    text-decoration: underline;
}

.hpro-customer-auth .btn-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--hpro-auth-primary);
    border-radius: calc(var(--hpro-auth-radius) - 4px);
    background: var(--hpro-auth-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hpro-customer-auth .btn-auth-submit:hover {
    border-color: var(--hpro-auth-primary-dark);
    background: var(--hpro-auth-primary-dark);
    transform: translateY(-1px);
}

.hpro-customer-auth .invalid-feedback,
.hpro-customer-auth .help-block,
.hpro-customer-auth .text-danger {
    display: block;
    margin-top: 7px;
    color: var(--hpro-auth-danger) !important;
    font-size: 13px;
}

.hpro-customer-auth__alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: calc(var(--hpro-auth-radius) - 4px);
    font-size: 14px;
    line-height: 1.5;
}

.hpro-customer-auth__alert--success {
    border-color: rgba(47, 179, 68, 0.22);
    background: rgba(47, 179, 68, 0.10);
    color: var(--hpro-auth-success);
}

.hpro-customer-auth__alert--danger {
    border-color: rgba(214, 57, 57, 0.22);
    background: rgba(214, 57, 57, 0.10);
    color: var(--hpro-auth-danger);
}

.hpro-customer-auth__alert--warning {
    border-color: rgba(245, 159, 0, 0.24);
    background: rgba(245, 159, 0, 0.12);
    color: #8a5a00;
}

@media (max-width: 640px) {
    .hpro-customer-auth {
        padding: 42px 14px;
    }

    .hpro-customer-auth__header,
    .hpro-customer-auth__body {
        padding-right: 22px;
        padding-left: 22px;
    }

    .hpro-customer-auth__header {
        flex-direction: column;
        padding-top: 26px;
    }

    .hpro-customer-auth .row {
        grid-template-columns: 1fr;
    }

    .hpro-customer-auth .text-end {
        text-align: left;
    }
}
