/* Business portal sign-in (/Login/Index). Class names used by login-script_06.js are kept on the elements. */

html, body { background: #f3f4f6 !important; }
.lg-root { min-height: 100vh; width: 100%; float: none; height: auto; font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; }
.lg-root *, .lg-app * { box-sizing: border-box; }

.lg-shell { display: flex; min-height: 100vh; width: 100%; background: #f3f4f6; float: none !important; height: auto !important; }

/* Brand panel */
.lg-brand {
    flex: 0 0 44%; max-width: 640px; position: relative; display: flex; align-items: flex-end; color: #fff;
    background: url(/Images/side-img.jpg) center center / cover no-repeat;
}
.lg-brand::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 24, 39, .25) 0%, rgba(17, 24, 39, .9) 72%); }
.lg-brand-in { position: relative; padding: 0 48px 56px; max-width: 520px; }
.lg-brand-tag {
    display: inline-block; background: #cd3333; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 18px;
}
.lg-root .lg-brand h2 { color: #fff !important; font-size: 32px; font-weight: 700; line-height: 1.25; margin: 0 0 12px; text-align: left !important; }
.lg-root .lg-brand p { color: rgba(255, 255, 255, .86) !important; font-size: 16px; line-height: 1.6; margin: 0 0 20px; text-align: left !important; }
.lg-brand ul { list-style: none; margin: 0; padding: 0; }
.lg-brand li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 15px; color: #fff; }
.lg-brand li::before {
    content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Form side */
.lg-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; min-width: 0; }
.lg-card {
    width: 100%; max-width: 440px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06); padding: 36px 36px 28px;
}
.lg-head { text-align: center; margin-bottom: 22px; }
.lg-logo { width: 190px; max-width: 70%; height: auto; display: block; margin: 0 auto 14px; }
.lg-badge {
    display: inline-block; border: 1px solid #f1b4b4; color: #cd3333; background: #fff5f5; font-size: 11px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.lg-root .lg-head h1 { font-size: 28px !important; font-weight: 700 !important; color: #111827 !important; margin: 0 0 6px !important; text-align: center !important; font-family: inherit !important; letter-spacing: normal !important; text-transform: none !important; }
.lg-root .lg-brand h2, .lg-app h2 { letter-spacing: normal !important; text-transform: none !important; }
.lg-root .lg-head p { font-size: 15px; color: #6b7280; margin: 0; text-align: center !important; line-height: 1.5; }

.lg-root .lg-notice {
    display: block; float: none; width: auto; text-align: left; font-style: normal; margin: 0 0 16px; padding: 10px 12px; border-radius: 8px;
    background: #eef4ff; border: 1px solid #c7d7fe; color: #1e3a8a; font-size: 13px; line-height: 1.5;
}
.lg-root .lg-notice:empty { display: none; }

.lg-field { margin-bottom: 16px; }
.lg-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lg-root .lg-label { display: block; font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 6px; position: static; }
.lg-root .lg-input {
    display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
    font-size: 15px; color: #111827; box-shadow: none; outline: none; transition: border-color .12s, box-shadow .12s; -webkit-appearance: none; appearance: none;
}
.lg-root .lg-input::placeholder { color: #9ca3af; }
.lg-root .lg-input:focus { border-color: #cd3333; box-shadow: 0 0 0 3px rgba(205, 51, 51, .14); }
.lg-root .lg-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.lg-root .has-error .lg-input { border-color: #dc2626; }

/* Password: masked as before (text-security on a search box), with Show / Hide */
.lg-pass { position: relative; }
.lg-root .lg-pass .lg-input { padding-right: 72px; }
.lg-root .passcls .lg-input { -webkit-text-security: disc; -moz-text-security: disc; text-security: disc; }
.lg-root .passcls.lg-revealed .lg-input { -webkit-text-security: none; -moz-text-security: none; text-security: none; }
.lg-root .lg-show {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 12px; border: none; border-radius: 8px;
    background: transparent; color: #374151; font-size: 13px; font-weight: 700; cursor: pointer; width: auto; margin: 0;
}
.lg-root .lg-show:hover { background: #f3f4f6; }
.lg-root .lg-show:focus-visible, .lg-root .lg-btn:focus-visible, .lg-root .lg-link:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.lg-caps { font-size: 12px; color: #92400e; background: #fff8e6; border-radius: 6px; padding: 4px 8px; margin-top: 6px; display: inline-block; }
.lg-hint { font-size: 12px; color: #6b7280; margin-top: 6px; line-height: 1.45; }

.lg-root .mand em, .lg-root .mand .help-block { display: block; color: #b91c1c !important; font-size: 12px !important; font-style: normal !important; margin: 6px 0 0; position: static; }
.lg-root .mand:empty { display: none; }
/* A global .mand rule positions it absolutely (top-right); keep messages under their field. */
.lg-root .mand { position: static !important; width: auto !important; top: auto !important; right: auto !important; text-align: left !important; float: none !important; }

.lg-root .lg-link { color: #0556ad !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.lg-root .lg-link:hover { text-decoration: underline !important; }

.lg-root .lg-error { float: none; width: auto; font-style: normal; margin: 4px 0 14px; padding: 10px 12px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b !important; font-size: 13px; line-height: 1.5; }
.lg-root .lg-error:empty { display: none; }

.lg-root .lg-btn, .lg-app .lg-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 48px !important; border: none; border-radius: 10px;
    background: #cd3333; color: #fff !important; font-size: 16px !important; font-weight: 700; letter-spacing: .2px; cursor: pointer;
    margin: 6px 0 0 !important; text-transform: none; transition: background .12s; box-shadow: none; padding: 0 16px;
}
.lg-root .lg-btn:hover, .lg-app .lg-btn:hover { background: #b42b2b; }
.lg-root .lg-btn:disabled { opacity: .7; cursor: default; }

.lg-root .lg-register { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #f0f0f0; text-align: center !important; font-size: 14px; color: #4b5563; }
.lg-root .lg-register a, .lg-root .lg-terms a { line-height: inherit !important; display: inline !important; height: auto !important; padding: 0 !important; }
.lg-root .lg-register a { color: #cd3333 !important; font-weight: 700; text-decoration: none !important; }
.lg-root .lg-register a:hover { text-decoration: underline !important; }
/* Login page: "Open a free business account" heading above the register line */
.lg-root .lg-register-title { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #f0f0f0; text-align: center !important; font-size: 15px; font-weight: 700; color: #111827; }
.lg-root .lg-register.lg-register-sub { margin-top: 4px; padding-top: 0; border-top: none; line-height: 1.6 !important; }
.lg-root .lg-terms { margin: 14px 0 0; text-align: center !important; font-size: 12px; line-height: 1.6; color: #6b7280; }
.lg-root .lg-terms a { color: #4b5563 !important; text-decoration: underline !important; font-size: 12px !important; }

.lg-offline { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; font-size: 14px; color: #374151; }
.lg-offline img { width: 22px; height: auto; }

/* ---- Shared by Register (/Login/signup) and Forgot password (/Signup/Forgotpassword) ---- */
.lg-brand-2 { background-image: url(/Images/side-img2.jpg); }

.lg-root .lg-back { display: inline-flex; align-items: center; gap: 6px; margin: -8px 0 14px; color: #374151 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.lg-root .lg-back:hover { color: #cd3333 !important; }

/* Registration progress (Views/Register/_BizSteps.cshtml) inside the card */
.lg-root .biz-steps, .rg-page .biz-steps { list-style: none; display: flex; gap: 4px; margin: 0 0 22px; padding: 0; max-width: none; }
.lg-root .biz-steps li, .rg-page .biz-steps li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; text-align: center; position: relative; line-height: 1.3; }
.lg-root .biz-steps li::before, .rg-page .biz-steps li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: #e5e7eb; z-index: 0; }
.lg-root .biz-steps li:first-child::before, .rg-page .biz-steps li:first-child::before { display: none; }
.lg-root .biz-steps li.done::before, .lg-root .biz-steps li.current::before, .rg-page .biz-steps li.done::before, .rg-page .biz-steps li.current::before { background: #cd3333; }
.lg-root .biz-step-n, .rg-page .biz-step-n {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e5e7eb; background: #fff; color: #6b7280;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; position: relative; z-index: 1;
}
.lg-root .biz-steps li.done .biz-step-n, .rg-page .biz-steps li.done .biz-step-n { background: #cd3333; border-color: #cd3333; color: #fff; }
.lg-root .biz-steps li.current .biz-step-n, .rg-page .biz-steps li.current .biz-step-n { border-color: #cd3333; background: #cd3333; color: #fff; box-shadow: 0 0 0 4px rgba(205, 51, 51, .14); }
.lg-root .biz-steps li.current .biz-step-t, .rg-page .biz-steps li.current .biz-step-t { color: #111827; font-weight: 700; }
.lg-root .biz-step-t, .rg-page .biz-step-t { display: block; }

/* Code boxes (Verify mobile) */
.lg-otp { display: flex; justify-content: center; gap: 10px; margin: 4px 0 16px; }
.lg-root .lg-otp .lg-otp-box {
    width: 58px; height: 64px; padding: 0 !important; margin: 0; text-align: center; font-size: 28px; font-weight: 700; color: #111827;
    border: 1px solid #d1d5db; border-radius: 12px; background: #fff; outline: none; box-shadow: none; line-height: normal !important;
}
.lg-root .lg-otp .lg-otp-box:focus { border-color: #cd3333; box-shadow: 0 0 0 3px rgba(205, 51, 51, .14); }
.lg-root .lg-success { margin: 4px 0 14px; padding: 10px 12px; border-radius: 8px; background: #ecfdf3; border: 1px solid #b7ebc9; color: #14532d; font-size: 13px; line-height: 1.5; text-align: left; }
.lg-root .lg-success:empty { display: none; }
.lg-root .lg-error.biz-error, .lg-root .lg-success.biz-success { font-style: normal; text-align: left; }
.lg-root .lg-resend { margin: 14px 0 0; text-align: center !important; font-size: 14px; color: #6b7280; }
.lg-root .lg-resend a { color: #0556ad !important; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.lg-root .lg-resend a:hover { text-decoration: underline !important; }

.lg-root .lg-btn-ghost { background: #fff; color: #1f2937 !important; border: 1px solid #d1d5db; }
.lg-root .lg-btn-ghost:hover { background: #f9fafb; }
.lg-btn-row { display: flex; gap: 10px; margin-top: 8px; }
.lg-root .lg-btn-row .lg-btn { margin: 0 !important; }

.lg-result { text-align: center; padding: 8px 0 4px; }
.lg-result-ic { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.lg-result-ic.ok { background: #ecfdf3; color: #16a34a; }
.lg-result-ic.bad { background: #fef2f2; color: #b91c1c; }
.lg-result-ic.info { background: #eef4ff; color: #1d4ed8; font-family: Georgia, serif; font-style: italic; }
.lg-root .lg-result h2 { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 8px; text-align: center !important; letter-spacing: normal !important; }
.lg-root .lg-result p { font-size: 14px; color: #4b5563; line-height: 1.6; margin: 0 0 12px; text-align: center !important; overflow-wrap: anywhere; }
.lg-root .lg-result .lg-muted { color: #9ca3af; font-size: 13px; }

/* Hide the reCAPTCHA v2 placeholder box; v3 runs invisibly. */
.lg-root .g-recaptcha { height: 0; overflow: hidden; }

/* Mobile app suggestion */
.lg-app { position: fixed; inset: 0; z-index: 1000; background: #f3f4f6 !important; display: flex; align-items: center; justify-content: center; padding: 20px; width: auto !important; margin: 0 !important; float: none !important; border: none !important; min-height: 0 !important; border-radius: 0 !important; }
.lg-app[style*="display: none"], .lg-app[style*="display:none"] { display: none !important; }
.lg-app-card { position: relative; width: 100%; max-width: 380px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px 24px 24px; text-align: center; box-shadow: 0 10px 30px rgba(17, 24, 39, .06); }
.lg-app-card img { width: 170px; height: auto; margin: 0 auto 16px; display: block; }
.lg-app .lg-app-card h2 { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 14px; }
.lg-app-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.lg-app-card li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 14px; color: #374151; line-height: 1.45; }
.lg-app-card li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #ecfdf3; color: #15803d; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lg-app .app_hide { display: inline-block; margin-top: 14px; }
.lg-app-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #6b7280 !important; text-decoration: none !important; }
.lg-app-close:hover { background: #f3f4f6; }

@media (max-width: 991px) {
    .lg-brand { display: none; }
    /* Extra bottom space so Google's reCAPTCHA badge doesn't cover the terms. */
    .lg-main { padding: 28px 16px 88px; justify-content: flex-start; }
}
@media (max-width: 480px) {
    .lg-root .biz-step-t, .rg-page .biz-step-t { font-size: 11px; }
    .lg-root .lg-otp .lg-otp-box { width: 52px; height: 58px; }
    .lg-card { padding: 28px 20px 22px; border-radius: 14px; }
    .lg-root .lg-head h1 { font-size: 24px !important; }
}
