 /* Animation styles */
 @keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #cbe6ff, #E7F2DC, #fff1ef, #fafff6);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* [data-bs-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c, #3d3d3d, #4e4e4e);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
} */

.animated-background {
    background: linear-gradient(270deg, #cbe6ff, #E7F2DC, #fff1ef, #fafff6);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

/* Main Container Styles */
#kt_app_root {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    padding: 20px;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    width: 100%;
    max-width: 80%;
    height: auto;
    min-height: 70vh;
    border-radius: 50px;
    overflow: hidden;
    /* border: 5px solid rgba(127, 209, 210, 0.8); */
    margin-bottom: 20px;
    overflow-y: auto;
}

/* Left Section Styles */
.left-section {
    position: relative;
    width: 50%;
    flex: 0 0 66.66%;
    /* background: linear-gradient(to right, rgba(0, 150, 136, 0.6), rgba(127, 209, 210, 0.2)), url('/theme/images/student_teacher_login.png') no-repeat center center; */
    /* background-size: cover; */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    min-height: 70vh;
}

.text-content {
    max-width: 600px;
}

.left-section h1 {
    font-size: 32px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.learn-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
}

/* Right Section Styles */
.right-section {
    flex: 0 0 33.33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: white;
    width: 50%;
    min-width: 220px;
    padding: 10px;
    min-height: 70vh;
}

.page-title {
    text-align: center;
    font-weight: bolder;
    color: #333;
    margin-bottom: 15px;
}

/* Login Container Styles */
.login-container {
    border-radius: 30px;
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px auto 20px;
    /* Auto-height based on content */
    box-shadow:
        0 0 0 0,
        0 0 0 var(--btn3d-border-width) rgba(255, 255, 255, 0.15) inset,
        0 var(--btn3d-click-gap) 0 0 #e9e2dd,
        var(--btn3d-click-gap) 0 0 0 #e9e2dd,
        var(--btn3d-click-gap) var(--btn3d-click-gap) var(--btn3d-click-gap) 0px rgba(0, 0, 0, var(--btn3d-shadow)),
        0 -2px 6px rgba(255, 255, 255, 0.4) inset;
}

/* Form styling for the upper and lower sections with distinct backgrounds */
.form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.form-upper-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 15px;
    background-color: #FFEFE8;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.form-lower-section {
    background-color: #FF7A2F;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Input Styles with icon positioning */
.fv-row {
    position: relative;
    width: 90%;
    margin: 0 auto 15px auto;
}

.custom-input {
    border-radius: 50px;
    padding: 12px 12px 12px 50px;
    border: 1px solid #ff761b;
    width: 100%;
    height: 45px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.fv-row img {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    z-index: 2;
}

/* Button Styles */
.login-btn {
    width: 90%;
    padding: 10px 0;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    /* margin-bottom: 15px; */
    cursor: pointer;
    background-color: #FF7A2F;
    color: white;
    border: 2px solid white;
}

.login-btn:hover {
    background-color: #e66a20;
}

/* Error message styling */
.error-message {
    color: #ff0000 !important;
    font-size: 11px;
    /* display: block;
    position: absolute; */
    /* bottom: -20px; */
    left: 5px;
}

/* Extra content styling */
.forgot-password, .signup-section {
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    margin: 2px 0;
    color: black;
}

.forgot-password a, .signup-section a {
    text-decoration: none;
}

.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .login-container {
        width: 85%;
    }
}

@media (max-width: 768px) {
    
    .login-container {
        width: 90%;
        min-height: fit-content;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }
    .right-section {
        width: 100%;
        min-height: 40%;
        padding: 15px;
    }

    .left-section {
        display: none;
    }

    .right-section {
        order: 2;
        justify-content: start;
    }

    .text-content h1 {
        font-size: 24px;
    }

    .login-container {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .form-upper-section {
        padding: 20px 10px;
    }
    
    .form-lower-section {
        padding: 12px 10px;
    }
    
    .custom-input {
        height: 40px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 8px 0;
        font-size: 16px;
    }
    
    .forgot-password, .signup-section {
        font-size: 14px;
    }
}

[data-bs-theme="dark"] .btn-white {
	color: #666666;
	box-shadow: 0 0 0 1px var(--btn3d-border-white) inset, 0 0 0 var(--btn3d-border-width) rgba(255, 255, 255, 0.10) inset, 0 var(--btn3d-click-gap) 0 0 var(--btn3d-bottom-white), 0 var(--btn3d-click-gap) var(--btn3d-click-gap) 1px rgba(0, 0, 0, var(--btn3d-shadow)) !important;
	background-color: var(--btn3d-white) !important;
}