/* Custom Login Styles */
.login-page-wrapper {
    min-height: 100vh;
    /*background-color: #f8f9fa;*/
    /*background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-container {
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
}

.custom-login-container {
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #d9d9d9;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login button states */
.login-btn {
    position: relative;
    overflow: hidden;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    /* Add shadow for better visual separation */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Keep the old banner class for compatibility */
.login-banner {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    margin-bottom: 1rem;
    border-radius: 4px;
    background-color: #03522D;
}

.login-header h2 {
    color: #177b57;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Henderson BCG Sans', 'Open Sans', sans-serif;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control-login {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.8rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.form-control-login:focus {
    outline: none;
    border-color: #177b57;
    box-shadow: 0 0 0 2px rgba(23, 123, 87, 0.25);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    margin: 0;
}

.remember-me label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    /*transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;*/
}

.btn-primary-green {
    color: #fff !important;
    background-color:#03522D !important;
    border-color:#03522D !important;
    
}

    .btn-primary-green:hover {
        color: #fff !important;
        background-color: #03522D !important;
        border-color: #03522D !important;
    }

    .btn-primary-green:disabled {
        color: #fff !important;
        background-color: #03522D !important;
        border-color: #03522D !important;
        cursor: not-allowed;
    }


.btn-block {
    display: block;
    width: 100%;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Responsive design */
@media (max-width: 576px) {
    .login-page-wrapper {
        padding: 1rem 0.5rem;
        min-height: 100vh;
    }
    
    .custom-login-container {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 8px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-banner {
        max-height: 60px;
       
    }
    
    .login-logo {
        max-height: 40px;
    }


}

/* Ensure the widget container takes full height */
#widget {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}