/* Client Portal login (Views/Home/Index.cshtml). Scoped under .lg-page so it does not affect other _blankLayout pages. */

html, body { height: 100%; }
body { margin: 0; background: #F3F6F8; }
#body, #body > .content-wrapper { height: 100%; }

.lg-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #374550;
    font-size: 14px;
}

/* ---- Left brand panel ---- */
.lg-hero {
    position: relative;
    flex: 1 1 52%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px 64px;
    background: linear-gradient(155deg, #00263E 0%, #013451 55%, #004A6B 100%);
    color: #FFFFFF;
}
.lg-hero-inner { position: relative; z-index: 1; max-width: 480px; }
.lg-hero-glow {
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 189, 113, .35) 0%, rgba(0, 189, 113, 0) 70%);
}
.lg-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 120px rgba(255, 255, 255, .015);
}
.lg-hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.lg-hero-brand img { width: 40px; height: 40px; }
.lg-hero-brand span { font-size: 22px; font-weight: 300; letter-spacing: .5px; }
.lg-hero-brand b { font-weight: 700; color: #00BD71; }
.lg-hero-title { margin: 0 0 16px 0; font-size: 36px; line-height: 1.2; font-weight: 600; color: #FFFFFF; font-family: inherit; }
.lg-hero-sub { margin: 0 0 32px 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.lg-hero-list { list-style: none; margin: 0; padding: 0; }
.lg-hero-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.lg-hero-list svg {
    flex: 0 0 auto;
    box-sizing: content-box;
    padding: 9px;
    border-radius: 10px;
    background: rgba(0, 189, 113, .14);
    color: #00BD71;
}

/* ---- Right form panel ---- */
.lg-panel {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #F3F6F8;
}
.lg-card {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    padding: 40px 40px 28px 40px;
    background: #FFFFFF;
    border: 1px solid #E4E9ED;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 38, 62, .04), 0 12px 32px rgba(0, 38, 62, .08);
}
.lg-logo { display: block; height: 34px; width: auto; margin-bottom: 28px; }
.lg-title { margin: 0 0 6px 0; font-size: 24px; font-weight: 600; color: #00263E; font-family: inherit; }
.lg-subtitle { margin: 0 0 24px 0; font-size: 13px; line-height: 1.5; color: #6B7A87; }

.lg-alert .validation-summary-errors {
    margin: 0 0 18px 0;
    padding: 10px 12px;
    border: 1px solid #F5C2C2;
    border-left: 4px solid #D63B3B;
    border-radius: 8px;
    background: #FDF2F2;
    color: #A12A2A;
    font-size: 12px;
    line-height: 1.5;
}
.lg-alert .validation-summary-errors ul { margin: 4px 0 0 0; padding: 0 0 0 16px; }
.lg-alert .validation-summary-valid { display: none; }

.lg-field { margin-bottom: 18px; }
.lg-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.lg-label { display: block; margin: 0 0 6px 0; font-size: 12px; font-weight: 600; color: #374550; }
.lg-input-wrap { position: relative; }
.lg-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9CAAB5; pointer-events: none; }
.lg-page input.lg-input {
    display: block;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 42px 0 40px;
    border: 1px solid #D5DDE3;
    border-radius: 8px;
    background: #FFFFFF;
    font: 14px 'Segoe UI', Tahoma, sans-serif;
    color: #00263E;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lg-page input.lg-input::placeholder { color: #A9B5BF; }
.lg-page input.lg-input:focus { border-color: #00BD71; box-shadow: 0 0 0 3px rgba(0, 189, 113, .15); }
.lg-page input.lg-input.input-validation-error { border-color: #D63B3B; }
.lg-input-wrap:focus-within .lg-input-icon { color: #00BD71; }
.lg-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9CAAB5;
    cursor: pointer;
}
.lg-eye:hover, .lg-eye[aria-pressed="true"] { color: #00263E; background: #F3F6F8; }
.lg-field-error { display: block; margin-top: 5px; font-size: 12px; color: #D63B3B; }
.lg-field-error.field-validation-valid { display: none; }

.lg-page a.lg-link { font-size: 12px; font-weight: 600; color: #00263E; text-decoration: none; }
.lg-page a.lg-link:hover { color: #00BD71; text-decoration: underline; }

.lg-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    background: #00BD71;
    color: #FFFFFF;
    font: 600 15px 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 189, 113, .28);
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.lg-btn:hover { background: #00A862; box-shadow: 0 6px 16px rgba(0, 189, 113, .34); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 189, 113, .3); }
.lg-btn[disabled] { cursor: default; opacity: .85; }
.lg-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: lg-spin .7s linear infinite;
}
.lg-btn.is-loading .lg-spinner { display: inline-block; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #EEF2F5;
    font-size: 12px;
    color: #9CAAB5;
}
.lg-page a.lg-link-muted { color: #6B7A87; text-decoration: none; }
.lg-page a.lg-link-muted:hover { color: #00263E; text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .lg-hero { display: none; }
    .lg-panel { padding: 24px 16px; }
    .lg-card { padding: 32px 24px 24px 24px; }
}

/* ---- One-time code screen (Views/Home/CodeAuthentication.cshtml) ---- */
.otp-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #E6F8F2;
    color: #00A862;
}
.otp-email { color: #00263E; font-weight: 600; }
.otp-success {
    margin: 0 0 18px 0;
    padding: 10px 12px;
    border: 1px solid #A8E6CC;
    border-left: 4px solid #00BD71;
    border-radius: 8px;
    background: #E6F8F2;
    color: #00663D;
    font-size: 12px;
    line-height: 1.5;
}
.otp-boxes { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
.lg-page input.otp-box {
    width: 100%;
    max-width: 52px;
    height: 58px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid #D5DDE3;
    border-radius: 10px;
    background: #F7F9FA;
    text-align: center;
    font: 700 24px Consolas, 'Courier New', monospace;
    color: #00263E;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lg-page input.otp-box:focus { border-color: #00BD71; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(0, 189, 113, .15); }
.lg-page input.otp-box.filled { background: #FFFFFF; border-color: #9CAAB5; }
.otp-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 12px; }
.otp-timer { display: inline-flex; align-items: center; gap: 6px; color: #6B7A87; }
.otp-timer.warning { color: #B7791F; }
.otp-timer.expired { color: #D63B3B; font-weight: 600; }
.otp-cooldown { color: #9CAAB5; }
.lg-page a.otp-cancel {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6B7A87;
    text-decoration: none;
}
.lg-page a.otp-cancel:hover { color: #D63B3B; text-decoration: underline; }
