/* Regulator Portal Login — single stylesheet.
   Edit only: public/assets/common/css/regulator-login.css
*/

.regulator-login-page *,
.regulator-login-page *::before,
.regulator-login-page *::after {
    box-sizing: border-box;
}

html body.regulator-login-page.rg-auth {
    margin: 0;
    height: 100%;
    overflow: hidden;
    color: #101828;
    background: #fff;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
}

.regulator-login-page,
.regulator-login-page h1,
.regulator-login-page h2,
.regulator-login-page h3,
.regulator-login-page p,
.regulator-login-page span,
.regulator-login-page a,
.regulator-login-page button,
.regulator-login-page input,
.regulator-login-page label,
.regulator-login-page strong,
.regulator-login-page em {
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
}

.regulator-login-page {
    --rgl-navy: #183455;
    --rgl-navy-2: #183455;
    --rgl-ink: #101828;
    --rgl-muted: #667085;
    --rgl-line: #e4e7ec;
    --rgl-bg: #f8fafc;
    --rgl-danger: #b42318;
    --rgl-ok: #479955;
    --rgl-green: #479955;
    --rgl-green-hover: #35824d;
    --rgl-green-soft: rgba(61, 154, 90, 0.12);
    --rgl-hero-ink: #183455;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
}

.regulator-login-page .rgl-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 1fr auto;
}

.regulator-login-page .rgl-hero {
    grid-column: 1;
    grid-row: 1 / -1;
}

.regulator-login-page .rgl-pane {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
}

.regulator-login-page .rgl-foot {
    grid-column: 2;
    grid-row: 2;
}

/* Left panel — full-height background image on .rgl-hero */

.regulator-login-page .rgl-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  
    background-image: url("../img/regulator/login-hero-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.regulator-login-page .rgl-hero-intro {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 40px 10px 0 110px;
    max-width: 900px;
  
}

.regulator-login-page .rgl-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 15px;
}

.regulator-login-page .rgl-logo {
    width: auto;
    height: 61px;
    object-fit: contain;
    display: block;
}

.regulator-login-page .rgl-brand-sub {
    font-size: 13px;
    font-weight: 500;
    color: #6b7c8f;
}

.regulator-login-page .rgl-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 2.8vw, 48px);
    line-height: 1.22;
    font-weight: 800;
    color: var(--rgl-hero-ink);
}

.regulator-login-page .rgl-hero-accent {
    display: block;
    color: var(--rgl-green);
    font-weight: 800;
    max-width: 800px;
}

.regulator-login-page .rgl-hero-copy p {
    margin: 0 0 26px;
    max-width: 622.98px;
    color: #596071;
    font-size: 20px;
    line-height: 1.5;
}

.regulator-login-page .rgl-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: center;
}

.regulator-login-page .rgl-metric {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    min-width: 0;
    padding: 0 18px;
}

.regulator-login-page .rgl-metric:first-child {
    padding-left: 0;
}

.regulator-login-page .rgl-metric:not(:last-child) {
    border-right: 1px solid #d7dde5;
}

.regulator-login-page .rgl-metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    padding: 0;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    background: #E8F5E5;
    color: var(--rgl-green);
}

.regulator-login-page .rgl-metric-icon svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px;
    max-height: 26px;
    display: block;
    margin: 0 auto;
    flex: 0 0 auto;
}

.regulator-login-page .rgl-metric strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
   
    line-height: 1.15;
    color: #101828;
}

.regulator-login-page .rgl-metric span {
    display: flex;
   
    font-size: 16px;
    line-height: 1.35;
    color: #596071;
}

/* Right panel — match reference login form */

.regulator-login-page .rgl-pane {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 100px 64px 24px;
    box-sizing: border-box;
}

.regulator-login-page .rgl-pane-shell {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.regulator-login-page .rgl-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.regulator-login-page .rgl-pane-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.regulator-login-page .rgl-pane-logo {
    width: 133px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
}

.regulator-login-page .rgl-pane-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--rgl-hero-ink);
    letter-spacing: -0.01em;
}

.regulator-login-page .rgl-pane-divider {
    width: 1px;
    height: 16px;
    background: #d0d5dd;
    flex: 0 0 auto;
}

.regulator-login-page .rgl-pane-label {
    color: #8594AD;
    font-size: 15px;
    font-weight: 500;

    text-transform: uppercase;
}

.regulator-login-page .rgl-locale {
    display: inline-flex;
    align-items: center;
    gap: 8px;


    
 
    color: #101F37;
    font-size: 14px;
    font-weight: 500;
    flex: 0 0 auto;
}

.regulator-login-page .rgl-flag svg {
    width: 22px;
    height: 14px;
    display: block;
    border-radius: 2px;
    overflow: hidden;
}

.regulator-login-page .rgl-locale-chevron {
    width: 16px;
    height: 16px;
    color: #98a2b3;
}

.regulator-login-page .rgl-form-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.regulator-login-page .rgl-form-card h2 {
    margin: 0 0 4px;
    font-size: 34px;
    font-weight: 700;
  
    color: var(--rgl-hero-ink);
    line-height: 1.2;
}

.regulator-login-page .rgl-form-card .rg-lead {
    margin: 0 0 28px;
    color: #596071;
    font-size: 17px;
    line-height: 1.6;
}

/* Alerts */

.regulator-login-page .rg-expired {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.regulator-login-page .rg-expired strong,
.regulator-login-page .rg-expired em {
    display: block;
    font-style: normal;
}

.regulator-login-page .rg-expired strong {
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--rgl-ink);
}

.regulator-login-page .rg-expired em {
    color: var(--rgl-muted);
    font-size: 13px;
    line-height: 1.45;
}

.regulator-login-page .rg-expired-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fee4e2;
    color: var(--rgl-danger);
}

.regulator-login-page .rg-expired-icon svg {
    width: 16px;
    height: 16px;
}

.regulator-login-page .rg-expired-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.regulator-login-page .rg-banner {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.regulator-login-page .rg-banner-bad {
    background: #fef3f2;
    color: var(--rgl-danger);
}

.regulator-login-page .rg-banner-ok {
    background: #ecfdf3;
    color: var(--rgl-ok);
}

/* Form */

.regulator-login-page .rgl-form .rg-field {
    margin-bottom: 25px;
}

.regulator-login-page .rgl-form .rg-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 400;
    color: var(--rgl-ink);
}

.regulator-login-page .rgl-form .rg-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.regulator-login-page .rgl-forgot,
.regulator-login-page .rg-forgot {
    color: var(--rgl-green);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.regulator-login-page .rgl-forgot:hover,
.regulator-login-page .rg-forgot:hover {
    color: var(--rgl-green-hover);
    text-decoration: underline;
}

.regulator-login-page .rgl-input {
    position: relative;
}

.regulator-login-page .rg-password {
    position: relative;
}

.regulator-login-page .rg-password input::-ms-reveal,
.regulator-login-page .rg-password input::-ms-clear,
.regulator-login-page .rg-password input::-webkit-credentials-auto-fill-button {
    display: none !important;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.regulator-login-page .rg-eye {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.regulator-login-page .rg-eye svg {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
}

.regulator-login-page .rg-eye .rg-eye-on,
.regulator-login-page .rg-eye.is-revealed .rg-eye-off {
    display: none !important;
}

.regulator-login-page .rg-eye.is-revealed .rg-eye-on {
    display: block !important;
}

.regulator-login-page .rgl-input-icon {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 20px;
    height: 20px;
    color: #98a2b3;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regulator-login-page .rgl-input-icon svg {
    width: 20px;
    height: 20px;
}

.regulator-login-page .rgl-form .rg-field input,
.regulator-login-page .rgl-input input {
    width: 100%;
    height: 56px;
    border: 1px solid #DCE3EC;
    border-radius: 10px;
    padding: 0 16px 0 44px;
    font: inherit;
    font-size: 15px;
    color: var(--rgl-ink);
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.regulator-login-page .rgl-form .rg-password input {
    padding-right: 52px;
}

.regulator-login-page .rgl-form .rg-field input::placeholder,
.regulator-login-page .rgl-input input::placeholder {
    color: #98a2b3;
}

.regulator-login-page .rgl-form .rg-field input:focus,
.regulator-login-page .rgl-input input:focus {
    border-color: #98a2b3;
    box-shadow: 0 0 0 3px rgba(71, 153, 85, 0.12);
}

.regulator-login-page .rgl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--rgl-green);
    color: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.regulator-login-page .rgl-btn svg {
    width: 18px;
    height: 18px;
}

.regulator-login-page .rgl-btn:hover {
    background: var(--rgl-green-hover);
}

.regulator-login-page .rgl-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Security */

.regulator-login-page .rgl-security {
    margin-top: 32px;
    padding-top: 0;
    border-top: 0;
}

.regulator-login-page .rgl-security-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    text-align: center;
    color: #596071;
    font-size: 12px;
    font-weight: 500;
  
    text-transform: uppercase;
    white-space: nowrap;
}

.regulator-login-page .rgl-security-kicker::before,
.regulator-login-page .rgl-security-kicker::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e4e7ec;
}

.regulator-login-page .rgl-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.regulator-login-page .rgl-security-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 0 16px;
}

.regulator-login-page .rgl-security-item:first-child {
    padding-left: 0;
}

.regulator-login-page .rgl-security-item:last-child {
    padding-right: 0;
}

.regulator-login-page .rgl-security-item + .rgl-security-item {
    border-left: 1px solid #e4e7ec;
}

.regulator-login-page .rgl-security-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #eef7f0;
    color: var(--rgl-green);
}

.regulator-login-page .rgl-security-icon svg {
    width: 18px;
    height: 18px;
}

.regulator-login-page .rgl-security-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.regulator-login-page .rgl-security-copy strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--rgl-hero-ink);
    line-height: 1.3;
}

.regulator-login-page .rgl-security-copy span {
    font-size: 12px;
    line-height: 1.45;
    color: #596071;
}

/* Footer */

.regulator-login-page .rgl-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
    padding: 18px 64px 24px;
    border-top: 1px solid #79809426;
    background: #fff;
    color: #596071;
    font-size: 12px;
    line-height: 1.4;
}

.regulator-login-page .rgl-foot p {
    margin: 0;
}

.regulator-login-page .rgl-foot p:last-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.regulator-login-page .rgl-foot p:last-child::before {
    content: "";
    width: 1px;
    height: 12px;
    background: #d0d5dd;
}

/* Responsive */

@media (max-width: 1280px) {
    .regulator-login-page .rgl-hero-intro {
        padding: 32px 36px 24px;
    }

    .regulator-login-page .rgl-pane {
        padding-left: 48px;
        padding-right: 48px;
    }

    .regulator-login-page .rgl-foot {
        padding-left: 48px;
        padding-right: 48px;
    }

    .regulator-login-page .rgl-pane-shell {
        width: 100%;
        
    }
}

@media (max-width: 1024px) {
    .regulator-login-page .rgl-hero-copy h1 {
        font-size: 24px;
    }
}

/* Short viewports (small height): allow page scroll even on wider screens */
@media (max-height: 820px) {
    html:has(body.regulator-login-page),
    html body.regulator-login-page.rg-auth {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .regulator-login-page .rgl-page {
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .regulator-login-page .rgl-pane,
    .regulator-login-page .rgl-hero {
        height: auto !important;
        min-height: 0;
        overflow: visible;
    }

    .regulator-login-page .rgl-pane-shell {
        overflow: visible !important;
        justify-content: flex-start;
    }
}

@media (max-width: 960px) {
    html:has(body.regulator-login-page),
    html body.regulator-login-page.rg-auth {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

  

    .regulator-login-page .rgl-pane {
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
        padding: 24px 24px 16px;
    }

    .regulator-login-page .rgl-pane-shell {
        width: 100%;
   
        overflow: visible !important;
        justify-content: flex-start;
        padding: 0;
    }

    .regulator-login-page .rgl-hero {
        min-height: 480px;
        height: auto !important;
        overflow: hidden;
        background-size: 100% auto;
        background-position: center 280px;
    }

    .regulator-login-page .rgl-hero-intro {
        padding: 28px 24px 200px;
    }

    .regulator-login-page .rgl-security-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .regulator-login-page .rgl-security-item {
        padding: 0;
    }

    .regulator-login-page .rgl-security-item + .rgl-security-item {
        border-left: 0;
        padding-top: 16px;
        border-top: 1px solid #e4e7ec;
    }
}

@media (max-width: 640px) {
    .regulator-login-page .rgl-metrics {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .regulator-login-page .rgl-metric {
        padding: 0;
    }

    .regulator-login-page .rgl-metric:not(:last-child) {
        border-right: 0;
        padding-bottom: 14px;
        border-bottom: 1px solid #d7dde5;
    }

    .regulator-login-page .rgl-form-card h2 {
        font-size: 24px;
    }

    .regulator-login-page .rgl-pane-header {
        flex-wrap: wrap;
    }

    .regulator-login-page .rgl-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .regulator-login-page .rgl-foot p:last-child::before {
        display: none;
    }
    .regulator-login-page .rgl-pane-label{
        font-size: 14px;
    }

}

@media (max-width: 380px) {
    .regulator-login-page .rgl-form .rg-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .regulator-login-page .rgl-pane-logo{
        width: 116px;
    height: 44px;
    }
}





@media (max-width: 1700px) {
.regulator-login-page .rgl-page{
        grid-template-columns: 50% 50%;
}
    .regulator-login-page .rgl-hero {
        background-image: none !important;
        background-color: #e8f5e580 !important;
    }
}

@media (max-width: 1199px) {
    html:has(body.regulator-login-page),
    html body.regulator-login-page.rg-auth {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .regulator-login-page .rgl-page {
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible !important;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .regulator-login-page .rgl-pane {
        order: 1;
        grid-column: 1;
        grid-row: auto;
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
        padding: 0 0 16px;
        transform: none;
    }

    .regulator-login-page .rgl-pane-shell {
        overflow: visible !important;
        max-width: none;
        padding: 100px 24px 0;
        transform: none;
    }

    .regulator-login-page .rgl-pane-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        margin: 0;
        padding: 16px 24px;
        background: #fff;
        border-bottom: 1px solid #eef1f5;
        box-sizing: border-box;
    }

    .regulator-login-page .rgl-hero {
        order: 2;
        grid-column: 1;
        grid-row: auto;
        height: auto !important;
        min-height: 0;
        background-image: none !important;
        background-color: #e8f5e580 !important;
    }

    .regulator-login-page .rgl-foot {
        order: 3;
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
        padding: 18px 24px 24px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .regulator-login-page .rgl-brand {
        display: none !important;
    }

    .regulator-login-page .rgl-hero-intro {
        padding: 28px 24px 28px;
    }

    .regulator-login-page .rgl-form-card .rg-lead {
        font-size: 16px;
    }

    .regulator-login-page .rgl-hero-copy p {
        font-size: 16px;
    }

    .regulator-login-page .rgl-form .rg-field{
        margin-bottom: 20px;
    }
    .regulator-login-page .rgl-form-card .rg-lead{
            margin: 0 0 20px;
    }
    .regulator-login-page .rgl-forgot, .regulator-login-page .rg-forgot{
        padding-bottom: 5px;
    }
}



@media (max-width: 462px) {
    .regulator-login-page .rgl-pane-shell{
                padding: 140px 24px 0;
    }
    .regulator-login-page .rgl-metric strong{
            font-size: 20px;
    }
    .regulator-login-page .rgl-btn{
        font-size: 18px;
    }
    .regulator-login-page .rgl-form .rg-field label{
         font-size: 16px;
    }
}