
:root{

    --primary:#6B1024;
    --primary-dark:#4A0B18;
     --hover:#e89c1a;
    --hover-dark:#d97706;
    --bg:#F7F5F2;
    --white:#ffffff;
    --text:#444;
    --border:#e7e7e7;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:Segoe UI,Arial,sans-serif;
    background:var(--bg);

}

.wrapper{

    display:flex;
    min-height:100vh;

}

/*=========================
LEFT PANEL
=========================*/

.left-panel{

    width:42%;
    color:#fff;
    padding:60px;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(
            rgba(107,16,36,0.88),
            rgba(74,11,24,0.90)
        ),
        url("../images/iitm_bg.webp");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

}

.brand-header{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:35px;
}

.logo{
    width:80px;
    height:80px;
    object-fit:contain;
    flex-shrink:0;
}

.iitm{

    margin-top:18px;

}

.iitm h2{
     margin:0;
    font-size:32px;
    font-weight:700;
    color:#fff;

}

.iitm p{
    margin:4px 0 0;
    font-size:16px;
    color:rgba(255,255,255,0.9);

}

.separator{

    height:1px;
    background:rgba(255,255,255,.25);
    margin:35px 0;

}

.gate-logo{

    width:260px;
    max-width:100%;

}

.portal-title{

    margin-top:35px;
    font-size:50px;
    font-weight:700;
    line-height:1.1;

}

.portal-desc{

    margin-top:20px;
    font-size:19px;
    line-height:1.8;

}

.features{

    margin-top:35px;

}

.features li{

    list-style:none;
    margin-bottom:18px;
    font-size:18px;

}

.features i{

    color:#ffd86b;
    margin-right:12px;

}

.left-footer{

    position:absolute;
    bottom:35px;
    left:60px;
    font-size:15px;
    opacity:.9;

}

/*=========================
RIGHT PANEL
=========================*/

.right-panel{

    width:58%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#faf9f7;
    padding:40px;

}

.login-card{
    width:100%;
    max-width:520px;
    background:#ffffff;
    border-radius:24px;
    padding:50px;
    border:1px solid #ececec;
    box-shadow:
        0 12px 30px rgba(0,0,0,.08),
        0 2px 6px rgba(0,0,0,.04);
}

.login-title{

    text-align:center;
    color:var(--primary);
    font-weight:700;
    font-size:34px;

}

.login-sub{

    text-align:center;
    color:#777;
    margin-top:10px;
    margin-bottom:35px;

}

.login-logo{
    max-width:180px;
    height:auto;
}

.form-label{

    font-weight:600;

}

.input-group{

    margin-bottom:22px;

}

.input-group-text{

    background:#fff;
    border-radius:12px 0 0 12px;

}

.form-control{

    height:52px;
    border-radius:0 12px 12px 0;

}

.form-control:focus{

    box-shadow:none;
    border-color:var(--primary);

}

.btn-login{

    background:var(--primary);
    color:#fff;
    width:100%;
    height:52px;
    border:none;
    border-radius:12px;
    font-size:18px;
    font-weight:600;
    transition:all .3s ease;

}

.btn-login:hover,
.btn-login:focus{

    background:var(--hover);
    color:#fff;

}

.btn-login:active{

    background:var(--hover-dark);

}

.version{

    text-align:center;
    margin-top:30px;
    color:#666;

}

.version small{

    display:block;
    margin-top:6px;

}

@media(max-width:991px){

.wrapper{

    flex-direction:column;

}

.left-panel,
.right-panel{

    width:100%;

}

.left-panel{

    padding:40px;

}

.left-footer{

    position:static;
    margin-top:40px;

}

.portal-title{

    font-size:38px;

}

.login-card{

    padding:30px;

}

}

/* Hide mobile header on desktop */
.mobile-header{
    display:none;
}

/* Mobile View */
@media (max-width:991px){

    /* Hide complete left panel */
    .left-panel{
        display:none;
    }

    /* Right panel occupies full screen */
    .right-panel{
        width:100%;
        min-height:100vh;
        padding:20px;
        align-items:flex-start;
    }

    /* Show IITM header */
    .mobile-header{
        display:flex;
        align-items:center;
        gap:15px;
        background:#6B1024;
        color:#fff;
        padding:15px 20px;
    }

    .mobile-logo{
        width:55px;
        height:55px;
        object-fit:contain;
    }

    .mobile-title h4{
        margin:0;
        font-size:22px;
        font-weight:700;
    }

    .mobile-title p{
        margin:2px 0 0;
        font-size:13px;
        opacity:.9;
    }

    .login-card{
        margin-top:20px;
        max-width:100%;
    }

}

