body {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
    /* filter: blur(0.5px); */ /* Remove blur for better clarity and layout */
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 30s linear infinite;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    width: 100%;
    min-height: calc(100vh - 40px); /* Adjust for padding */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 35px 80px rgba(44, 132, 126, 0.25), 0 2px 8px rgba(30, 89, 85, 0.08);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    position: relative;
    min-height: 600px;
    animation: fadeInCard 1.2s cubic-bezier(.39,.575,.56,1) both;
}

@keyframes fadeInCard {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); }
    100% { opacity: 1; transform: none; }
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    /* background-color: var(--primary-color); */
    padding: 4rem 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(60px) saturate(120%);
    background-clip: padding-box;
}

.signup-info {
    margin-top: 2.5rem;
    text-align: center;
}
.signup-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 0.5px;
}
.signup-info .signup-desc {
    color: #e0f7f4;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.login-left h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(30, 89, 85, 0.08);
}

.login-left p {
    font-size: 1.1rem;
    opacity: 0.93;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

.login-right {
    flex: 1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(255,255,255,0.97);
    z-index: 1;
}

/* Divider */
.login-right::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 10%;
    width: 2px;
    height: 80%;
    background: linear-gradient(180deg, #2c847e33 0%, #1e595533 100%);
    border-radius: 2px;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    width: 100px;
    height: 100px;
    /* background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    box-shadow: 0 8px 20px rgba(44, 132, 126, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(44, 132, 126, 0.4);
}

.logo i {
    font-size: 2.8rem;
    color: white;
}

.login-header h2 {
    color: var(--dark);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
}

.form-control {
    padding: 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 3px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: auto;
    background-color: #ffffff !important;
    color: #2d3748;
}

.form-control:focus {
    border-color: #a0a0a06f;
    box-shadow: 0 0 0 4px rgba(44, 132, 126, 0.018);
    background-color: #ffffff !important;
}

.form-control::placeholder {
    color: #a0aec0;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Simple, reliable icon styles */
.input-group .left-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
    /* Never hide the icon */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Only change color and scale on focus, never hide */
.input-group:focus-within .left-icon {
    color: #1e5955 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Remove all other focus selectors that might cause issues */

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 5px;
    /* Ensure password toggle is always visible */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Ensure password toggle stays visible on focus */
.input-group:focus-within .password-toggle,
.form-control:focus ~ .password-toggle {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-login {
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--yellow) 100%);
    border: none;
    border-radius: 30px;
    padding: 1.1rem;
    width: 100%;
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(44, 132, 126, 0.13);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--yellow) 100%);
    color: var(--black);
    /* transform: translateY(-2px) scale(1.04); */
    box-shadow: 0 12px 32px rgba(32, 42, 18, 0.209);
    text-decoration: none;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.form-check {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0;
    margin-right: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--light-primary);
}
.form-check-input:focus{
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--light-primary);
}

.form-check-label {
    color: #2b2b2b;
    font-size: 0.95rem;
    font-weight: 500;
}

.forgot-password {
    text-align: right;
    margin-top: 1.8rem;
}

.forgot-password a {
    color: #2c847e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #1e5955;
    transition: width 0.3s ease;
}

.forgot-password a:hover {
    color: #1e5955;
}

.forgot-password a:hover::after {
    width: 100%;
}

.signup-section {
    margin-top: 2.5rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.signup-section p {
    color: #718096;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.signup-section a {
    color: #2c847e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.signup-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #1e5955;
    transition: width 0.3s ease;
}

.signup-section a:hover {
    color: #1e5955;
}

.signup-section a:hover::after {
    width: 100%;
}

#toast-container>.toast-error{
 background-image: none !important;
}
/* Toastr Customization */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    width: 250px !important;
    padding: 15px 20px;
    font-family: 'Poppins', sans-serif;
}

.toast-error {
    background-color: #f56565;
}

.toast-success {
    background-color: #48bb78;
}

.toast-info {
    background-color: #2c847e;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column-reverse;
        max-width: 100%;
        min-height: auto;
        margin: 20px;
    }

    .login-left, .login-right {
        padding: 2rem;
    }

    .login-left {
        order: 2;
        padding: 2rem 1.5rem;
    }

    .login-right {
        order: 1;
        padding: 2rem 1.5rem;
    }

    .login-right::before {
        display: none;
    }

    .login-left h1 {
        font-size: 2rem;
    }

    .login-left p {
        font-size: 1rem;
        max-width: 100%;
    }

    .platform-logo {
        width: 120px;
        height: auto;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 20px;
    }

    .login-left, .login-right {
        padding: 1.5rem 1rem;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .logo {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .form-control {
        padding: 0.8rem 2.5rem;
        font-size: 0.95rem;
    }

    .btn-login {
        padding: 0.9rem;
    }

    .signup-info {
        margin-top: 1.5rem;
    }

    .signup-info h3 {
        font-size: 1.1rem;
    }

    .signup-info .signup-desc {
        font-size: 0.9rem;
    }

    .btn-signup {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

.btn-signup {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    background: linear-gradient(135deg, var(--yellow) 0%, var(--light-yellow) 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 6px 24px rgba(30, 89, 85, 0.18);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.39,.575,.56,1);
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn-signup:hover, .btn-signup:focus {
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--yellow) 100%);
    color: var(--black);
    /* transform: translateY(-2px) scale(1.04); */
    box-shadow: 0 12px 32px rgba(22, 28, 12, 0.452);
    text-decoration: none;
}

.platform-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.295));
    border-radius: 18px;
    background: rgb(255 255 255);
    padding: 8px;
    transition: all 0.3s ease;
}

.platform-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(44, 132, 126, 0.4);
}
.platform-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px var(--light-primary));
    border-radius: 50%;
    background: #fff;
    padding: 8px;
}


@media (max-width: 1440px){
.login-left{
      padding: 2rem 3rem !important;
   }
   .login-container{
    max-width: 800px;
   }
   .login-left h1{
    font-size: 2rem !important;
   }
   .login-header h2{
    font-size: 2rem !important;
   }
   .login-header{
    margin-bottom: 1rem;
   }
   .login-left p{
    font-size: 15px;
    margin-bottom: -1rem;
   }
   .signup-info .signup-desc{
    font-size: 15px;
   }
   .login-header p{
    font-size: 15px;
   }
   .platform-logo{
    width: 80px;
    height: 80px;
   }
   .logo{
    width: 80px;
    height: 80px;
   }
   .platform-icon{
    width: 70px;
    height: 70px;
   }
   .btn-signup{
    padding: 10px 25px;
    margin-top: 1rem;
   }
   .btn-login{
    padding: 10px 25px;
    margin-top: 1rem;
   }
   .login-right{
      padding: 2rem 3rem !important; 
   }
}

/* --- Hide Toastr Notification Icons on Login Screen --- */
#toast-container > .toast i,
#toast-container > .toast .toast-icon,
#toast-container > .toast svg,
#toast-container > .toast [class*="icon"],
#toast-container > .toast [class*="Icon"],
#toast-container > .toast [class^="fa"],
#toast-container > .toast [class*="fa-"] {
    display: none !important;
}

/* CRITICAL: Force icon visibility - add this at the very end */
.input-group .left-icon,
.input-group:focus .left-icon,
.input-group:focus-within .left-icon,
.form-control:focus ~ .left-icon,
.form-control:focus + .left-icon,
.input-group .fas.left-icon,
.input-group .fa.left-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--secondary-color) !important;
}

.input-group:focus-within .left-icon,
.form-control:focus ~ .left-icon {
    color: var(--secondary-color) !important;
}