@font-face {
  font-family: Oswald;
  src: url(../fonts/Oswald-Regular.woff);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Oswald;
}

/* ===========================================================
   MAIN LAYOUT
   =========================================================== */
.login-container {
    display: flex;
    /*height: 100vh;*/
    width: 100%;
}

/* ===========================================================
   LEFT SECTION (60%)
   =========================================================== */
.left-section {
    width: 60%;
    background: url("school-bg.png") no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center; 
    flex: unset;
}

/* Dark overlay on image */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

/* Text + logo inside left section */
.left-content {
    position: absolute;
    bottom: 60px;
    left: 50px;
    color: #fff;
    animation: fadeIn 1.2s ease;
}

.school-logo {
    width: 120px;
    margin-bottom: 15px;
}

.left-section h1 {
    font-size: 34px;
    font-weight: 600;
}

.left-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 6px;
}


/* ===========================================================
   RIGHT SECTION (40%) + LOGIN BOX
   =========================================================== */
.right-section {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    /* merged from .right-section1 */
    flex: unset;

}

/* LOGIN BOX */
.login-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    padding: 10px;
    border-radius: 14px;
    /*box-shadow: 0 8px 25px rgba(0,0,0,0.18);*/
    animation: fadeIn 0.6s ease;
    text-align: center;
}

.login-box h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.sub-text {
    font-size: 14px;
    margin-bottom: 25px;
    color: #666;
}


/* ===========================================================
   INPUT FIELDS WITH OUTSIDE LEFT ICON
   =========================================================== */
.input-row {
    margin-bottom: 18px;
    text-align: left;
}

/* Input Label */
.input-row label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Icon + Input Wrapper */
.input-with-icon {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
}

.input-with-icon i {
    font-size: 18px;
    color: #0d6efd;
    margin-right: 10px;
}

.input-with-icon input {
    border: none;
    width: 100%;
    height: 37px;
    font-size: 14px;
    padding-left: 25px;
}

.input-with-icon input:focus {
    outline: none;
}

.input-with-icon:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}


/* ===========================================================
   BUTTON
   =========================================================== */
.login-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.login-btn:hover {
    background: #084298;
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}



/* Select Inside Wrapper (No Border) */
.custom-select {
    width: 100%;
    padding: 12px 12px 12px 40px !important;
    border: none !important;
    outline: none !important;
    background-color: transparent;
    font-size: 15px;
    height: 40px;
    appearance: none;
}

/* Proper Styled Wrapper */
.input-with-icon {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: 0 12px;
    position: relative;
}

/* Focus Effect on Wrapper */
.input-with-icon:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}

/* Icon */
.input-with-icon i {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: #3b82f6;
}


/* When input is invalid (required & empty) */
/* Default: normal */
/* After Login click: highlight only invalid fields */
.show-error input:invalid {
    border: 2px solid red !important;
}


/* ===========================================================
   FOOTER TEXT
   =========================================================== */
.footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #777;
}



/* ===========================================================
   ANIMATIONS
   =========================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===========================================================
   MOBILE RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .left-section {
        display: none !important;
    }

    .school-logo {
        width: 90px;
    }

    .right-section::before {
        content: "";
        position: absolute;
        left:0; top:0; width:100%; height:100%;
        background: rgba(0,0,0,0.35); 
    }

    .right-section {
        width: 100%;
        height: 100vh;
        background: url("school-bg.png") no-repeat center center/cover;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-box {
        width: 85%;
        padding: 25px;
        background: rgba(255, 255, 255, 0.25); 
        backdrop-filter: blur(10px);  
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.25);
    }

    .input-row label {
        display: inline-block;
        background: #9019da;
        color: #fff;
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .login-box span,.sub-text,label,.forgot-text,.footer-text {
        color: #fff;
    }

    /* Right section full width */
    .right-section {
        width: 100% !important;
    }

    /* Login box width */
    .login-box {
        width: 90%;
        margin: 0 auto;
    }

    .login-box {
        width: 90%;
        padding: 10px;
    }
}

