@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:#f3f5f9;
    height:100vh;
    overflow:hidden;
}

body {
    font-size: 12px;
    margin: 0;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/static/images/hero-bg.jpg') no-repeat center;
    background-size: cover;
    opacity: 0.18;
    z-index: -1;
}

.main-container{
    width:100%;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    padding-left: 100px;
}

.governance-panel{
    width:1000px;
    height:620px;
    background:
        linear-gradient(
            180deg,
            #fbfcff 0%,
            #f8fbf9 100%
        );
    border:1px solid #edf1f5;
    border-radius:20px 0 0 20px;
    padding:70px;
    /* padding-left: 40px; */
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}

.governance-content{
    width:100%;
}

.mini-logo{
    font-size:10px;
    font-weight:700;
    color:#c0cad9;

    margin-bottom:36px;
}

.governance-content h1{
    font-size:30px;
    line-height:0.95;
    letter-spacing:-1px;

    color:#0f172a;
    font-weight:700;

    margin-bottom:24px;
}

.governance-content p{
    font-size:13px;
    line-height:1.8;

    color:#64748b;
}

/* =========================================
   LOGIN SECTION
========================================= */

.auth-section{
    width:620px;
}

.auth-card{
    width:70%;
    height:620px;

    background:#ffffff;

    border:1px solid #edf1f5;
    border-left:none;

    border-radius:0 20px 20px 0;

    padding:30px 34px;
}

#loginFormSection{
    width:100%;
}

/* =========================================
   HEADINGS
========================================= */

.auth-card h2{
    text-align:center;

    font-size:18px;
    font-weight:700;

    color:#0f172a;

    margin-bottom:8px;
}

.subtitle{
    text-align:center;

    font-size:11px;
    color:#94a3b8;

    margin-bottom:28px;
}

/* =========================================
   LABELS
========================================= */

label{
    display:block;

    font-size:12px;
    font-weight:600;

    color:#334155;

    margin-bottom:8px;
}

/* =========================================
   INPUTS
========================================= */

.input-group{
    position:relative;
    margin-bottom:18px;
}

.input-group input{
    width:100%;
    height:36px;

    border:1px solid #dbe2ea;
    border-radius:8px;

    background:#fafbfd;

    padding:0 38px;

    font-size:12px;
    color:#334155;

    transition:0.2s ease;
}

.input-group input:focus{
    outline:none;

    background:#ffffff;
    border-color:#cbd5e1;
}

.input-group span{
    position:absolute;

    top:50%;
    transform:translateY(-50%);

    font-size:16px;
    color:#94a3b8;
}

.input-group span:first-child{
    left:12px;
}

.toggle-password{
    right:12px;
    cursor:pointer;
}

/* =========================================
   OPTIONS
========================================= */

.form-options{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:24px;
}

.remember{
    display:flex;
    align-items:center;
    gap:6px;

    font-size:12px;
    color:#64748b;
}

.remember input{
    width:12px;
    height:12px;
}

.form-options a{
    font-size:11px;
    color:#c0cad9;
    text-decoration:none;
}

/* =========================================
   BUTTON
========================================= */

.primary-btn{
    width:100%;
    height:38px;

    border:none;
    border-radius:8px;

    background:#08122f;

    color:#ffffff;

    font-size:12px;
    font-weight:600;

    cursor:pointer;

    transition:0.2s ease;
}

.primary-btn:hover{
    background:#10204d;
}

/* =========================================
   DIVIDER
========================================= */

.divider{
    display:flex;
    align-items:center;

    margin:24px 0;

    color:#cbd5e1;
    font-size:10px;
}

.divider::before,
.divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#e2e8f0;
}

.divider span{
    padding:0 12px;
}

/* =========================================
   SSO BUTTONS
========================================= */

.sso-btn{
    width:100%;
    height:36px;

    border:1px solid #dbe2ea;
    border-radius:8px;

    background:#ffffff;

    margin-bottom:10px;

    font-size:11px;
    color:#334155;

    cursor:pointer;

    transition:0.2s ease;
}

.sso-btn:hover{
    background:#f8fafc;
}

/* =========================================
   HELP TEXT
========================================= */

.help-text{
    margin-top:34px;

    text-align:center;

    font-size:10px;
    color:#b6c0d1;
}

/* =========================================
   MFA SECTION
========================================= */

.mfa-section{
    display:none;
}

.mfa-section.active{
    display:block;
}

.mfa-card{
    width:320px;
    height:620px;

    background:#ffffff;

    border:1px solid #edf1f5;
    border-radius:20px;

    padding:34px;

    text-align:center;
}

.mfa-icon{
    font-size:34px;
    margin-bottom:18px;
}

.mfa-card h2{
    font-size:20px;
    font-weight:700;

    color:#0f172a;

    margin-bottom:10px;
}

.mfa-inputs{
    display:flex;
    justify-content:center;
    gap:10px;

    margin:30px 0;
}

.otp-input{
    width:42px;
    height:42px;

    border:1px solid #dbe2ea;
    border-radius:10px;

    text-align:center;

    font-size:18px;
}

.back-link{
    margin-top:20px;
}

.back-link a{
    font-size:11px;
    color:#94a3b8;
    text-decoration:none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:1100px){

    body{
        overflow:auto;
    }

    .main-container{
        flex-direction:column;
    }

    .governance-panel{
        width:100%;
        max-width:920px;

        height:auto;

        border-radius:20px 20px 0 0;
    }

    .auth-section{
        width:100%;
        max-width:920px;
    }

    .auth-card{
        border-left:1px solid #edf1f5;

        border-top:none;

        border-radius:0 0 20px 20px;
    }

    .mfa-card{
        width:100%;
        max-width:420px;
    }
}

/* =========================================
   SSO BUTTONS
========================================= */

.sso-btn{
    width:100%;
    height:38px;

    border:1px solid #dbe2ea;
    border-radius:8px;

    background:#ffffff;

    margin-bottom:10px;

    font-size:11px;
    color:#334155;

    cursor:pointer;

    transition:0.2s ease;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.sso-btn:hover{
    background:#f8fafc;
}

/* MICROSOFT */

.microsoft-btn{
    color:#334155;
}

.microsoft-icon{
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ENTERPRISE */

.enterprise-icon{
    font-size:16px;
    color:#0f172a;
}

/* =========================================
   ROLE BANNER
========================================= */

.role-banner{
    width:100%;

    padding:10px 14px;

    border-radius:8px;

    margin-bottom:20px;
    font-size:12px;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:8px;
}

.role-admin{
    background:#eff6ff;
    color:#1d4ed8;
    border:1px solid #bfdbfe;
}

.role-principal{
    background:#f0fdf4;
    color:#15803d;
    border:1px solid #bbf7d0;
}

.role-fiduciary{
    background:#fefce8;
    color:#a16207;
    border:1px solid #fde68a;
}

.role-default{
    background:#f8fafc;
    color:#475569;
    border:1px solid #e2e8f0;
}

/* =========================================
   MFA UI
========================================= */

.mfa-section{
    display:none;
    width:360px;
    margin-left:24px;
}

.mfa-card{
    background:#ffffff;
    border:1px solid #e7edf4;
    border-radius:20px;
    padding:30px 26px;
    width:120%;
    min-height:620px;
    text-align:center;
    box-shadow:
        0 10px 30px rgba(15,23,42,0.04);
}

.mfa-shield{
    width:52px;
    height:52px;
    margin:0 auto 18px;
    border-radius:50%;
    background:#f7f9fc;
    display:flex;
    align-items:center;
    justify-content:center;
}

.mfa-shield span{
    font-size:24px;
    color:#9aa8bc;
}

.mfa-card h2{
    font-size:28px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:12px;
}

.mfa-subtitle{
    font-size:13px;
    line-height:1.7;
    color:#7c8aa5;
    margin-bottom:28px;
}

.mfa-subtitle strong{
    display:block;
    margin-top:4px;
    color:#0f172a;
    font-weight:700;
}

.mfa-inputs{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:20px;
}

.otp-input{
    width:46px;
    height:46px;
    border:1px solid #d9e1ea;
    border-radius:10px;
    background:#f9fbfd;
    text-align:center;
    font-size:20px;
    font-weight:600;
    color:#0f172a;
    outline:none;
}

.otp-input:focus{
    border-color:#0b132b;
    background:#ffffff;
}

.otp-divider{
    color:#94a3b8;
    font-size:18px;
    font-weight:600;
}

.resend-code{
    font-size:12px;
    color:#94a3b8;
    margin-bottom:20px;
}

.resend-code strong{
    color:#0f172a;
}

.trust-device{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:12px;
    color:#94a3b8;
    margin-bottom:24px;
}

.mfa-divider{
    display:flex;
    align-items:center;
    margin:24px 0 18px;
}

.mfa-divider::before,
.mfa-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#e2e8f0;
}

.mfa-divider span{
    padding:0 10px;
    font-size:10px;
    font-weight:700;
    color:#b4bfce;
}

.mfa-option-btn{
    width:100%;
    height:46px;
    border:1px solid #dbe3ec;
    border-radius:10px;
    background:#ffffff;
    margin-bottom:12px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    cursor:pointer;
    transition:0.2s ease;
}

.mfa-option-btn:hover{
    background:#f8fafc;
}

.mfa-option-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.mfa-option-left span:first-child{
    font-size:18px;
    color:#64748b;
}

.mfa-option-left span:last-child{
    font-size:13px;
    color:#334155;
}

.mfa-option-btn > span{
    font-size:18px;
    color:#94a3b8;
}

.back-link{
    margin-top:16px;
}

.back-link a{
    font-size:12px;
    color:#94a3b8;
    text-decoration:none;
}

/* =========================================
   SIGNUP LINK
========================================= */

.auth-footer-links{
    margin-top:1px;
    text-align:center;
}

.help-text a{
    color:#0f172a;
    text-decoration:none;
    font-weight:600;
    transition:0.2s ease;
}

.help-text a:hover{
    color:#1e293b;
    text-decoration:underline;
}