/* MADO Billing Portal — Final Professional Login UI */

*{margin:0;padding:0;box-sizing:border-box}

html,body{
    width:100%;
    min-height:100%;
    font-family:"Segoe UI",Arial,sans-serif;
}

body{
    min-height:100vh;
    background-color:#0b4fa2;
    background-image:url("../images/login-bg.png");
    background-repeat:repeat;
    background-size:320px;
    background-position:center;
    overflow:auto;
}

.login-page{
    min-height:100vh;
    width:100%;
}

.login-overlay{
    min-height:100vh;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:24px;
    background:rgba(8,39,96,.10);
}

.login-card{
    width:100%;
    max-width:440px;
    margin:0;
    padding:26px 34px 22px;
    background:#fff;
    border:1px solid rgba(13,71,161,.10);
    border-radius:18px;
    box-shadow:0 18px 55px rgba(0,28,78,.24);
}

.logo{
    display:block;
    width:92px;
    height:auto;
    margin:0 auto 7px;
}

.login-card h2{
    margin:0 0 2px;
    color:#0d47a1;
    font-size:27px;
    line-height:1.2;
    font-weight:700;
    letter-spacing:.2px;
}

.company{
    margin:0 0 14px;
    color:#54729d;
    font-size:12.5px;
    letter-spacing:.35px;
}

.login-card hr{
    margin:0 0 16px;
    border:0;
    border-top:1px solid #d8e2f1;
    opacity:1;
}

.login-card h1{
    margin:0 0 3px;
    color:#12345b;
    font-size:29px;
    line-height:1.2;
    font-weight:700;
}

.subtitle{
    margin:0 0 18px;
    color:#6680a3;
    font-size:13.5px;
}

label{
    display:inline-block;
    margin-bottom:5px;
    color:#183b66;
    font-size:13px;
    font-weight:600;
}

.input-group{margin-top:0}

.form-control{
    height:44px;
    border:1px solid #ccd8e8;
    color:#17365d;
    font-size:14px;
    box-shadow:none;
}

.form-control::placeholder{color:#91a3bd}

.form-control:focus{
    border-color:#1769e0;
    box-shadow:0 0 0 .16rem rgba(23,105,224,.13);
}

.input-group-text{
    min-width:44px;
    justify-content:center;
    background:#f5f8fc;
    border:1px solid #ccd8e8;
    color:#0d5bd7;
}

.btn-outline-secondary{
    min-width:44px;
    border:1px solid #ccd8e8;
    color:#66788f;
    background:#fff;
}

.btn-outline-secondary:hover{
    color:#0d5bd7;
    background:#f7faff;
    border-color:#ccd8e8;
}

.form-check-label{
    color:#365678;
    font-size:13px;
    font-weight:500;
}

.forgot-password{
    color:#0d5bd7;
    font-size:13px;
    text-decoration:none;
}

.forgot-password:hover{text-decoration:underline}

.login-btn{
    height:46px;
    border:0;
    border-radius:8px;
    background:#0d5bd7;
    color:#fff;
    font-size:15px;
    font-weight:600;
    letter-spacing:.3px;
    transition:background .2s ease,transform .2s ease;
}

.login-btn:hover{
    background:#094bb5;
    transform:translateY(-1px);
}

.mb-3{margin-bottom:12px!important}
.mb-4{margin-bottom:16px!important}

.signature{
    margin-top:14px;
    padding-top:13px;
    border-top:1px solid #d8e2f1;
    text-align:center;
    color:#7185a0;
    font-size:10.5px;
}

.signature span{
    color:#31567f;
    font-weight:600;
}

.footer-text{
    margin-top:8px;
    text-align:center;
    color:#7c8fa9;
    font-size:10px;
    line-height:15px;
}

.footer-text b{
    color:#31567f;
    font-weight:600;
}

@media(max-width:576px){
    .login-overlay{padding:12px}
    .login-card{
        max-width:100%;
        padding:22px 20px 18px;
        border-radius:15px;
    }
    .logo{width:82px}
    .login-card h2{font-size:24px}
    .login-card h1{font-size:26px}
}


/* ===== FINAL CENTER + ALL BLUE TEXT FIX ===== */

.login-page{
    min-height:100vh !important;
    width:100% !important;
}

.login-overlay{
    min-height:100vh !important;
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:20px !important;
}

.login-card{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    margin:0 auto !important;
    float:none !important;
    transform:none !important;
}

/* All card text blue */
.login-card,
.login-card h1,
.login-card h2,
.login-card p,
.login-card label,
.login-card .company,
.login-card .subtitle,
.login-card .form-check-label,
.login-card .forgot-password,
.login-card .signature,
.login-card .signature span,
.login-card .footer-text,
.login-card .footer-text b{
    color:#0d47a1 !important;
}

/* Keep button text white */
.login-card .login-btn,
.login-card .login-btn:hover,
.login-card .login-btn:focus{
    color:#ffffff !important;
}

/* Input typed text blue */
.login-card .form-control{
    color:#0d47a1 !important;
}

.login-card .form-control::placeholder{
    color:#7892b8 !important;
}
