* {
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* 🔒 NO SCROLLBAR */
body.no-scroll {
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

/* TOP BAR */
.top-bar {
    height: 64px;
    background: #e31837;
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 5;
    position: relative;
}

.brand {
    font-size: 26px;
    font-weight: 700;
    color: white;
}

    .brand .rise {
        font-size: 14px;
        margin-left: 6px;
        opacity: 0.85;
    }

/* MAIN AREA */
.main {
    position: relative;
    height: calc(100vh - 64px);
}

/* HERO IMAGE FULL */
.hero {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .hero img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* keep image as-is */
        background: #f4f4f4;
    }

/* LOGIN ON TOP OF IMAGE */
.login-section {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGIN CARD */
.login-card {
    width: 360px;
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

    /* FORM */
    .login-card h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #333;
    }

    .login-card label {
        font-size: 13px;
        color: #555;
    }

    .login-card input {
        width: 100%;
        padding: 10px;
        margin: 6px 0 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .login-card small {
        font-size: 12px;
        color: #777;
    }

.forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #e31837;
    margin: 10px 0 14px;
    cursor: pointer;
}

/* BUTTON */
.login-card button {
    width: 100%;
    padding: 12px;
    background: #e31837;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

    .login-card button:hover {
        background: #c91530;
    }

/* FOOTER (INSIDE VIEWPORT) */
.footer {
    height: 36px;
    text-align: center;
    font-size: 12px;
    color: #777;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 4;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
    }

    .hero img {
        object-fit: cover;
    }
}
/* 🔴 ERROR MESSAGE */
.error-msg {
    font-size: 12px;
    color: #e31837; /* Mahindra red */
    margin-top: -10px;
    margin-bottom: 12px;
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    position: relative;
}

    .login-title::after {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        background: #e31837; /* Mahindra red */
        margin: 8px auto 0;
        border-radius: 2px;
    }

