* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;


}

/* ===== MAIN WRAPPER - FULL SCREEN ===== */
.modern-login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    }

/* LEFT SIDE */
.modern-login-left {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: #ffffff; /* white background */
}

/* LOGIN BOX */
.modern-login-box {
    width: 100%;
    max-width: 400px;
    padding: 0;
    border-radius: 0;
}

/* LOGO / TITLES */
.login-logo h1,
.login-logo p {
    color: #000;
}

.login-logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}
.login-logo p {
    margin-bottom: 25px;
    font-size: 20px;
}

/* FORM GROUPS */
.form-group{
    position: relative;
    margin-bottom: 20px;
}

.form-group input{
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    border:1px solid #ddd;
    background: none;
}

.form-group label{
    color: #000;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* REMEMBER ME */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.remember-me label{
    margin-bottom:0px ;
}

.remember-me input[type="checkbox"]{
    width: 18px;
    height: 18px;
}

/* FORGOT PASSWORD */
.forgot-password {
    display: block;
    font-size: 13px;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    margin-top: 15px;
}

.forgot-password:hover{
    text-decoration: underline;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(8%);
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

/* LOGIN BUTTON */
.login-button{
    width: 100%;
    padding: 14px;
    border:none;
    border-radius:4px;
    background:#000;
    color:white;
    font-size:16px;
    cursor:pointer;
}

/* ERROR */
.login-error{
    background:#ffe6e6;
    color:#cc0000;
    padding:10px;
    border-radius:4px;
    margin-bottom:15px;
}

/* FOOTER */
.login-footer{
    margin-top:20px;
    text-align:center;
    font-size:12px;
    color:#555;
}

/* RIGHT SIDE - IMAGE / GRADIENT */
.modern-login-right{
    width:60%;
    background-image: url('../../assets/icons/login.jpg');
    background-size: cover;
    /*background-position: center;*/
    background-repeat: no-repeat;
    position: relative;
}

.modern-login-right::before {
    content: "";
    position: absolute;
    /* control position */
    top: 80px;              /* space from top */
    left: 50%;             /* move to center */
    transform: translateX(-50%);
    width: clamp(140px, 12vw, 178px);
    height: auto;
    aspect-ratio: 178 / 57;
    background-image: url('../../assets/icons/Vector.svg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
}
.modern-login-right::after {
    content: "Broker Referral\A Network Portal";
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: pre-line;
    z-index: 3;
    max-width: 400px; /* prevents overly long lines */
}
.brn-error{
    color: #e63946;
    font-size: 13px;
    margin-top: 6px;
}

.brn-input-error{
    border-color: #e63946 !important;
}


/* ===== RESPONSIVE ===== */
@media(max-width:900px){
    .modern-login-wrapper{
        flex-direction: column;
    }
    .modern-login-left,
    .modern-login-right{
        width:100%;
        min-height:50vh;
    }
    .modern-login-right::before {
        width: clamp(140px, 12vw, 178px);
        height: auto;
        aspect-ratio: 178 / 57;
        top: 20px;
    }
    .modern-login-right::after {
        font-size: 18px;
        bottom: 30px;
        max-width: 280px;
    }
}

@media(max-width:500px){
    .modern-login-left{
        padding:25px;
    }
    .login-logo h1{
        font-size:28px;
    }
    .login-logo p{
        font-size:14px;
    }
}