.hg-login {
    --hg-navy: #173b6c;
    --hg-text: #5b6077;
    --hg-orange: #f4ad26;
    --hg-blue: #2669b2;
    --hg-green: #82bb45;
    --hg-red: #ec3f45;
    --hg-orange-dark: #e8891a;
    --hg-input: #eef0f8;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f2f7fd 0%, #ffffff 45%, #f6faf0 100%);
    display: flex;
    align-items: center;
}
.hg-login .hg-inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 24px; }

.hg-left { text-align: center; }
.hg-brand { display: flex; justify-content: center; margin-bottom: 36px; }
.hg-brand img { width: 220px; height: 220px; object-fit: contain; }

.hg-headline { font-size: 44px; font-weight: 800; line-height: 1.2; color: var(--hg-navy); margin-bottom: 20px; }
.hg-headline em { font-style: normal; color: var(--hg-orange); }
.hg-lead { font-size: 19px; color: var(--hg-text); max-width: 440px; margin: 0 auto 36px; }

.hg-features { display: flex; justify-content: center; gap: 44px; }
.hg-feature { text-align: center; width: 84px; }
.hg-feature i { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(38, 105, 178, .12); color: var(--hg-blue); font-size: 28px; margin-bottom: 8px; }
.hg-feature span { display: block; font-size: 12px; font-weight: 500; color: var(--hg-navy); line-height: 1.3; }
.hg-feature:nth-child(2) i { background: rgba(130, 187, 69, .15); color: #5f9a2a; }
.hg-feature:nth-child(3) i { background: rgba(236, 63, 69, .12); color: var(--hg-red); }


.hg-card { background: #fff; border-radius: 22px; border-top: 3px solid var(--hg-orange); box-shadow: 0 20px 60px rgba(23, 59, 108, .10); padding: 44px 40px; max-width: 460px; margin-left: auto; }
.hg-card h1 { font-size: 30px; font-weight: 800; color: var(--hg-navy); margin-bottom: 8px; }
.hg-card .hg-sub { font-size: 15px; color: var(--hg-text); margin-bottom: 28px; }
.hg-card label.hg-label { font-size: 14px; font-weight: 600; color: var(--hg-navy); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hg-card label.hg-label i { font-size: 18px; }
.hg-card .form-control { height: 46px; border-radius: 10px; border: 1px solid #e1e4f0; background: var(--hg-input); font-size: 15px; color: var(--hg-navy); padding: 0 16px; }
.hg-card .form-control::placeholder { color: #9a9fb5; }
.hg-card .form-control:focus { background: #fff; border-color: var(--hg-orange) !important; box-shadow: 0 0 0 3px rgba(244, 173, 38, .2); }
.hg-card .password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--hg-text); cursor: pointer; }
.hg-card #password { padding-right: 48px; }

.hg-card .aiz-checkbox .aiz-square-check { border-radius: 4px; }
.hg-card .aiz-checkbox input:checked ~ .aiz-square-check { background: var(--hg-orange); border-color: var(--hg-orange); }
.hg-card .hg-forgot { font-size: 13px; color: var(--hg-orange-dark); text-decoration: underline; }
.hg-card .hg-forgot:hover { color: var(--hg-orange); }

.hg-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 10px; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--hg-orange) 0%, var(--hg-orange-dark) 100%); box-shadow: 0 8px 20px rgba(232, 137, 26, .3); transition: transform .15s, box-shadow .15s; }
.hg-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232, 137, 26, .4); color: #fff; }
.hg-btn i { font-size: 20px; }

.hg-divider { display: flex; align-items: center; gap: 14px; color: #9a9db0; font-size: 13px; margin: 22px 0 16px; }
.hg-divider:before, .hg-divider:after { content: ""; flex: 1; height: 1px; background: #e4e6ef; }
.hg-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; border: 1px solid #dfe2ec; border-radius: 10px; background: #fff; color: var(--hg-navy); font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.hg-social:hover { border-color: #c5c9d8; color: var(--hg-navy); background: #fafbff; }
.hg-social i { font-size: 20px; }

.hg-card .hg-link { font-size: 13px; color: var(--hg-orange-dark); padding: 0; border: 0; background: none; }
.hg-card .hg-link:hover { color: var(--hg-orange); }
.hg-card .hg-register { text-align: center; font-size: 14px; color: var(--hg-text); margin: 20px 0 0; }
.hg-card .hg-register a { font-weight: 700; color: var(--hg-orange-dark); margin-left: 6px; }
.hg-card .iti { width: 100%; }
.hg-home { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 460px; margin: 20px 0 0 auto; font-size: 14px; font-weight: 600; color: var(--hg-navy); }
.hg-home:hover { color: var(--hg-orange-dark); }
.hg-home i { font-size: 18px; }

/* OTP method selection */
.hg-card-head { text-align: center; }
.hg-card-head > i { font-size: 56px; color: var(--hg-blue); }
.hg-card-head h1 { margin-top: 6px; }
.hg-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hg-method { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 18px; border: 1px solid #e1e4f0; border-radius: 12px; background: var(--hg-input); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.hg-method:hover { border-color: #c9d3e6; }
.hg-method input { position: absolute; opacity: 0; pointer-events: none; }
.hg-method > i { font-size: 30px; color: var(--hg-navy); flex-shrink: 0; }
.hg-method-text { flex: 1; display: flex; flex-direction: column; }
.hg-method-text strong { font-size: 15px; font-weight: 600; color: var(--hg-navy); }
.hg-method-text small { font-size: 14px; color: var(--hg-text); }
.hg-radio { width: 22px; height: 22px; border: 2px solid #c5cad9; border-radius: 50%; background: #fff; flex-shrink: 0; position: relative; }
.hg-method:has(input:checked) { border-color: var(--hg-orange); background: #fff; box-shadow: 0 0 0 3px rgba(244, 173, 38, .15); }
.hg-method input:checked ~ .hg-radio { border-color: var(--hg-orange); }
.hg-method input:checked ~ .hg-radio:after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--hg-orange); }
.hg-method input:focus-visible ~ .hg-radio { box-shadow: 0 0 0 3px rgba(244, 173, 38, .3); }
.hg-btn:disabled { opacity: .7; cursor: default; transform: none; }
.hg-back { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--hg-orange-dark); }
.hg-back:hover { color: var(--hg-orange); }
.hg-back i { font-size: 20px; }

/* OTP code entry */
.hg-card-head > i.is-warning { color: var(--hg-red); }
.hg-card .form-control.hg-otp-input { height: 60px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 12px; padding: 0 12px 0 24px; }
.hg-card .form-control.hg-otp-input::placeholder { letter-spacing: 12px; }
.hg-debug { margin-bottom: 16px; padding: 12px; border-radius: 10px; background: rgba(38, 105, 178, .08); color: var(--hg-navy); text-align: center; font-size: 14px; }
.hg-debug strong { font-size: 18px; letter-spacing: 2px; }
.hg-success { text-align: center; padding: 8px 0 24px; }
.hg-success i { font-size: 56px; color: var(--hg-green); }
.hg-success p { margin: 10px 0 0; font-size: 18px; font-weight: 700; color: var(--hg-navy); }
.hg-resend { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--hg-text); }
.hg-resend .hg-link { font-weight: 600; }
.hg-resend .hg-link:disabled { color: #9a9db0; cursor: default; }
button.hg-social { cursor: pointer; }

@media (max-width: 991px) {
    .hg-login { align-items: flex-start; }
    .hg-brand { margin-bottom: 24px; }
    .hg-left { margin-bottom: 28px; }
    .hg-headline { font-size: 30px; }
    .hg-lead { font-size: 16px; margin: 0 auto 24px; }
    .hg-features { justify-content: center; gap: 24px; }
    .hg-card { margin: 0 auto; padding: 32px 24px; }
    .hg-home { margin: 20px auto 40px; }
}
@media (max-width: 575px) {
    .hg-features { display: none; }
    .hg-brand img { width: 140px; height: 140px; }
}
